Browse files

[popup] Unhook hash listeners when aborting

  • Loading branch information...
1 parent eaefde6 commit c029054ceb5ebca66320b198cac89d6bbfd13d69 @gabrielschulhof gabrielschulhof committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/popup.js
View
4 js/widgets/popup.js
@@ -617,7 +617,7 @@ define( [ "jquery",
toUrl = parsedDst.pathname + parsedDst.search + parsedDst.hash;
if ( this._myUrl !== toUrl ) {
- this._onHashChange( true );
+ this._navUnhook( true );
}
},
@@ -675,7 +675,7 @@ define( [ "jquery",
window.history.back();
}
else {
- this._onHashChange();
+ this._onHashChange( abort );
}
$.mobile.activePage.unbind( "pagebeforechange.popup" );
},

0 comments on commit c029054

Please sign in to comment.