fix event handlers in URL controller
This commit is contained in:
parent
4f6975561c
commit
d6861f9171
1 changed files with 4 additions and 4 deletions
|
@ -302,12 +302,12 @@ pandora.URL = (function() {
|
||||||
views: views
|
views: views
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onhashchange = function() {
|
window.addEventListener('hashchange', function() {
|
||||||
Ox.Request.cancel();
|
Ox.Request.cancel();
|
||||||
that.parse();
|
that.parse();
|
||||||
};
|
});
|
||||||
|
|
||||||
window.onpopstate = function(e) {
|
window.addEventListener('popstate', function(e) {
|
||||||
Ox.Request.cancel();
|
Ox.Request.cancel();
|
||||||
self.isPopState = true;
|
self.isPopState = true;
|
||||||
$('.OxDialog:visible').each(function() {
|
$('.OxDialog:visible').each(function() {
|
||||||
|
@ -337,7 +337,7 @@ pandora.URL = (function() {
|
||||||
} else {
|
} else {
|
||||||
that.parse();
|
that.parse();
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue