Skip to content

Commit f220f75

Browse files
committed
Use detachEvent in old IE
1 parent d11e141 commit f220f75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/BrowserHistory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class BrowserHistory extends DOMHistory {
7373
if (window.removeEventListener) {
7474
window.removeEventListener('popstate', this.handlePopState, false);
7575
} else {
76-
window.removeEvent('onpopstate', this.handlePopState);
76+
window.detachEvent('onpopstate', this.handlePopState);
7777
}
7878
}
7979
}

modules/HashHistory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class HashHistory extends DOMHistory {
123123
if (window.removeEventListener) {
124124
window.removeEventListener('hashchange', this.handleHashChange, false);
125125
} else {
126-
window.removeEvent('onhashchange', this.handleHashChange);
126+
window.detachEvent('onhashchange', this.handleHashChange);
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)