Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 25, 2011
1 parent f00abaf commit f30d184
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ if ( jQuery.browser.webkit && parseInt(jQuery.browser.version) < 534 )
// You probably shouldn't use pjax on pages with other pushState
// stuff yet.
jQuery(window).bind('popstate', function(event){
// Do nothing if we're not pjaxing
if ( jQuery.pjax == jQuery.noop )
return

if ( jQuery.pjax.firstLoad )
return jQuery.pjax.firstLoad = false

Expand Down

0 comments on commit f30d184

Please sign in to comment.