We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a177930 commit c7d03a5Copy full SHA for c7d03a5
modules/locations/HistoryLocation.js
@@ -41,7 +41,7 @@ var HistoryLocation = {
41
if (window.addEventListener) {
42
window.addEventListener('popstate', onPopState, false);
43
} else {
44
- window.attachEvent('popstate', onPopState);
+ window.attachEvent('onpopstate', onPopState);
45
}
46
47
_isListening = true;
@@ -57,7 +57,7 @@ var HistoryLocation = {
57
58
window.removeEventListener('popstate', onPopState);
59
60
- window.removeEvent('popstate', onPopState);
+ window.removeEvent('onpopstate', onPopState);
61
62
63
_isListening = false;
0 commit comments