Permalink
Browse files

Popup: Make sure close() only acts if the popup on which it is called…

… is the currently open popup
  • Loading branch information...
1 parent 45442df commit d42c4f209e04f041c653c30d524ade5ab0a929ba @gabrielschulhof gabrielschulhof committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/popup.js
View
@@ -815,7 +815,7 @@ define( [
close: function() {
// make sure close is idempotent
- if( !$.mobile.popup.active ){
+ if( $.mobile.popup.active !== this ) {
return;
}

0 comments on commit d42c4f2

Please sign in to comment.