Open haywoood opened 10 years ago
Here is the relevant code:
(def history (History.)) (events/listen history EventType/NAVIGATE (fn [e] (.log js/console "Route changed!"))) (.setEnabled history true)
With clojure.browser.repl required, this callback does not fire, but when I comment it out, all works swimmingly.
clojure.browser.repl
I have no idea why it would conflict with the hashchange event. Any ideas?
Not off the top of my head, no.
FWIW, Austin will stop using clojure.browser.repl with #50, which may (should?) eliminate any side effects of its implementation.
Here is the relevant code:
With
clojure.browser.repl
required, this callback does not fire, but when I comment it out, all works swimmingly.I have no idea why it would conflict with the hashchange event. Any ideas?