Skip to content

Commit

Permalink
[popup] Unhook hash listeners when aborting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Aug 7, 2012
1 parent eaefde6 commit c029054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/popup.js
Expand Up @@ -617,7 +617,7 @@ define( [ "jquery",
toUrl = parsedDst.pathname + parsedDst.search + parsedDst.hash;

if ( this._myUrl !== toUrl ) {
this._onHashChange( true );
this._navUnhook( true );
}
},

Expand Down Expand Up @@ -675,7 +675,7 @@ define( [ "jquery",
window.history.back();
}
else {
this._onHashChange();
this._onHashChange( abort );
}
$.mobile.activePage.unbind( "pagebeforechange.popup" );
},
Expand Down

0 comments on commit c029054

Please sign in to comment.