austin
austin copied to clipboard
clojure.browser.repl breaks the browser's hashchange event
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.
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.