Run unload method before pushing the new state
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 5 Dec 2013 20:11:57 +0000 (12:11 -0800)
committerTom Hughes <tom@compton.nu>
Thu, 5 Dec 2013 20:17:24 +0000 (20:17 +0000)
commit69aca22e6a03fbe43327f08e4d9db26e81434d70
tree258ef64deaca614bf3eff06b33a128ca2afa5cc4
parent21407ede7e6d82d0ff63e254807397f431dd211a
Run unload method before pushing the new state

If running unload causes any hash changes, those should
not end up on the new URL.

Fixes #622
app/assets/javascripts/router.js