Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests: Re-setup special event navigate when turning off pushstate
  • Loading branch information
gseguin committed Mar 4, 2013
1 parent 22b5be4 commit 16b8748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/jquery.testHelper.js
Expand Up @@ -52,6 +52,10 @@
setPushState: function() {
if( $.support.pushState && location.search.indexOf( "push-state" ) >= 0 ) {
$.support.pushState = false;
$.mobile.window.unbind( "popstate.navigate" );
$.mobile.window.unbind( "popstate.hashchange" );
$.event.special.navigate.bound = false;
$.event.special.navigate.setup();
}
},

Expand Down

0 comments on commit 16b8748

Please sign in to comment.