Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
haywoood opened this issue Jan 1, 2014 · 1 comment
Open

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

haywoood opened this issue Jan 1, 2014 · 1 comment
Milestone

Comments

@haywoood
Copy link

haywoood commented Jan 1, 2014

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?

@cemerick
Copy link
Owner

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 cemerick added this to the 0.2.0 milestone Feb 19, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants