We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03df6c5 commit d4b6eabCopy full SHA for d4b6eab
lib/browser.js
@@ -57,14 +57,7 @@ var listener = {
57
|| document.documentMode > 7)) {
58
// At least for now HTML5 history is available for 'modern' browsers only
59
if (this.history === true) {
60
- // There is an old bug in Chrome that causes onpopstate to fire even
61
- // upon initial page load. Since the handler is run manually in init(),
62
- // this would cause Chrome to run it twise. Currently the only
63
- // workaround seems to be to set the handler after the initial page load
64
- // http://code.google.com/p/chromium/issues/detail?id=63040
65
- setTimeout(function() {
66
- window.onpopstate = onchange;
67
- }, 500);
+ window.onpopstate = onchange;
68
}
69
else {
70
window.onhashchange = onchange;
0 commit comments