diff --git a/lib/director/browser.js b/lib/director/browser.js index 34519f7..e866bc1 100644 --- a/lib/director/browser.js +++ b/lib/director/browser.js @@ -47,7 +47,8 @@ var listener = { fire: function () { if (this.mode === 'modern') { - this.history === true ? window.onpopstate() : window.onhashchange(); + var method = window[this.history === true ? 'onpopstate' : 'onhashchange']; + method && method(); } else { this.onHashChanged();