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

Commit

Permalink
Popup: Make sure close() only acts if the popup on which it is called…
Browse files Browse the repository at this point in the history
… is the currently open popup
  • Loading branch information
Gabriel Schulhof committed Dec 16, 2012
1 parent 45442df commit d42c4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ define( [

close: function() {
// make sure close is idempotent
if( !$.mobile.popup.active ){
if( $.mobile.popup.active !== this ) {
return;
}

Expand Down

0 comments on commit d42c4f2

Please sign in to comment.