Fixed router on IE

This commit is contained in:
Marcin Kurczewski 2014-10-10 23:40:15 +02:00
parent ace8aee142
commit 7181171b16

View file

@ -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();
} }