Skip to content

Commit

Permalink
use capturing for history event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
nateps committed May 29, 2014
1 parent c04d472 commit 1991e5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function addListeners(history) {
}
}

document.addEventListener('click', onClick, false)
document.addEventListener('submit', onSubmit, false)
window.addEventListener('popstate', onPopState, false)
document.addEventListener('click', onClick, true)
document.addEventListener('submit', onSubmit, true)

This comment has been minimized.

Copy link
@ile

ile Jun 3, 2014

Is this correct?

window.addEventListener('popstate', onPopState, true)
}

0 comments on commit 1991e5e

Please sign in to comment.