Fixed router on IE
This commit is contained in:
parent
ace8aee142
commit
7181171b16
1 changed files with 5 additions and 3 deletions
|
@ -46,9 +46,11 @@ App.Router = function(_, jQuery, promise, util, appState, presenterManager) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
window.onpopstate = function() {
|
if ('onhashchange' in window) {
|
||||||
dispatch();
|
window.onhashchange = dispatch;
|
||||||
};
|
} else {
|
||||||
|
window.onpopstate = dispatch;
|
||||||
|
}
|
||||||
dispatch();
|
dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue