austin icon indicating copy to clipboard operation
austin copied to clipboard

clojure.browser.repl breaks the browser's hashchange event

Open haywoood opened this issue 10 years ago • 1 comments

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?

haywoood avatar Jan 01 '14 23:01 haywoood

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.

cemerick avatar Feb 19 '14 11:02 cemerick