fix event handlers in URL controller

This commit is contained in:
rolux 2013-03-02 10:55:13 +00:00
parent 4f6975561c
commit d6861f9171

View file

@ -302,12 +302,12 @@ pandora.URL = (function() {
views: views
});
window.onhashchange = function() {
window.addEventListener('hashchange', function() {
Ox.Request.cancel();
that.parse();
};
});
window.onpopstate = function(e) {
window.addEventListener('popstate', function(e) {
Ox.Request.cancel();
self.isPopState = true;
$('.OxDialog:visible').each(function() {
@ -337,7 +337,7 @@ pandora.URL = (function() {
} else {
that.parse();
}
};
});
return that;