popstate and hashchange event #2418

Closed
satazor opened this Issue Aug 28, 2012 · 4 comments

Comments

Projects
None yet
3 participants
Contributor

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?

Owner

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.

Owner

arian commented Mar 26, 2013

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

Done :)

#2485

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