Skip to content

Commit

Permalink
Fix initial pop in FF
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Apr 10, 2013
1 parent 0d7e75e commit f70e15c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.pjax.js
Original file line number Diff line number Diff line change
@@ -371,6 +371,11 @@ if (initialState && initialState.container) {
pjax.state = initialState
}

// Non-webkit browsers don't fire an initial popstate event
if ('state' in window.history) {
initialPop = false
}

// popstate handler takes care of the back and forward buttons
//
// You probably shouldn't use pjax on pages with other pushState

0 comments on commit f70e15c

Please sign in to comment.