Permalink
Browse files

Popup: Do not proceed with _closePopup() if the popup is no longer th…

…e currently-open one. Fixes #6182.
  • Loading branch information...
gabrielschulhof committed Jul 17, 2013
1 parent 8adff44 commit 9da71a49841d6235b48b84f2fce8bfcce0962c2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/popup.js
View
@@ -758,7 +758,7 @@ $.widget( "mobile.popup", {
_closePopup: function( evt, data ) {
var parsedDst, toUrl, opts = this.options, immediate = false;
- if ( evt && evt.isDefaultPrevented() ) {
+ if ( ( evt && evt.isDefaultPrevented() ) || $.mobile.popup.active !== this ) {
return;
}

0 comments on commit 9da71a4

Please sign in to comment.