listen to window.onhashchange in enyo2.0?

edited April 2012 in Enyo 2

I'm recently working on a project which needs oauth2.0. This project will run purely in desktop browser. In order to get oauth token, I'd like to listen to onhashchange event. I've tried using window.onhashchange = enyo.dispatch in constructor of my main class. But it won't work. Could someone please give me a hint how to do it correctly in enyo2?



Sign In or Register to comment.