popstate and hashchange event #2418

satazor opened this Issue Aug 28, 2012 · 4 comments


None yet
3 participants

satazor commented Aug 28, 2012

At the moment we can't do window.addEvent('popstate', fn) and/or window.addEvent('hashchange', fn) unless we previously add it to the native events as so:

Element.NativeEvents.popstate = 2;
Element.NativeEvents.hashchange = 1;

Shouldn't this be added to the core?


arian commented Aug 28, 2012

arian closed this Aug 28, 2012

It would be nice if the state were attached to the Event object, so we could use event.state instead of event.event.state.


arian commented Mar 26, 2013

Hi @magicalhobo, sounds useful, can you create a new issue for that so it's easier to track?

Done :)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment