client/hyalite/browser_event.rb in hyalite-0.0.1 vs client/hyalite/browser_event.rb in hyalite-0.0.2

- old
+ new

@@ -1,7 +1,6 @@ require 'set' -require 'math' require 'hyalite/event_dispatcher' require 'hyalite/synthetic_event' require 'hyalite/event_plugin/event_plugin_registry' require 'hyalite/event_plugin/simple_event_plugin' require 'hyalite/event_plugin/change_event_plugin' @@ -46,10 +45,10 @@ topTouchMove: 'touchmove', topTouchStart: 'touchstart', topWheel: 'wheel' } - TOP_LISTENERS_ID_KEY = '_hyliteListenersID' + Math.rand.to_s.chars.drop(2).join + TOP_LISTENERS_ID_KEY = '_hyliteListenersID' + rand.to_s.chars.drop(2).join class << self def enabled? event_dispatcher.enabled? end