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() {
|
||||
window.onpopstate = function() {
|
||||
dispatch();
|
||||
};
|
||||
if ('onhashchange' in window) {
|
||||
window.onhashchange = dispatch;
|
||||
} else {
|
||||
window.onpopstate = dispatch;
|
||||
}
|
||||
dispatch();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue