Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions lib/director/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ var listener = {
|| document.documentMode > 7)) {
// At least for now HTML5 history is available for 'modern' browsers only
if (this.history === true) {
// There is an old bug in Chrome that causes onpopstate to fire even
// upon initial page load. Since the handler is run manually in init(),
// this would cause Chrome to run it twise. Currently the only
// workaround seems to be to set the handler after the initial page load
// http://code.google.com/p/chromium/issues/detail?id=63040
setTimeout(function() {
window.onpopstate = onchange;
}, 500);
window.onpopstate = onchange;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cmwelsh could you please please review this?

}
else {
window.onhashchange = onchange;
Expand Down