lib/reactive-router/history.rb in reactive-router-0.7.7 vs lib/reactive-router/history.rb in reactive-router-0.7.8

- old
+ new

@@ -2,14 +2,15 @@ class << self def setup_handler unless @handlers_setup + handler = lambda { |event| window_history_pop_handler(event) } %x{ if (window.addEventListener) { - window.addEventListener('popstate', #{method(:window_history_pop_handler).to_n}, false); + window.addEventListener('popstate', handler, false); } else { - window.attachEvent('onpopstate', #{method(:window_history_pop_handler).to_n}); + window.attachEvent('onpopstate', handler); } } end @handlers_setup = true end