Skip to content

Commit d4b6eab

Browse files
committed
Remove workaround for an old Chrome bug
See flatiron#280
1 parent 03df6c5 commit d4b6eab

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/browser.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,7 @@ var listener = {
5757
|| document.documentMode > 7)) {
5858
// At least for now HTML5 history is available for 'modern' browsers only
5959
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);
60+
window.onpopstate = onchange;
6861
}
6962
else {
7063
window.onhashchange = onchange;

0 commit comments

Comments
 (0)