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

Commit

Permalink
Popup: Do not proceed with _closePopup() if the popup is no longer th…
Browse files Browse the repository at this point in the history
…e currently-open one. Fixes #6182.
  • Loading branch information
Gabriel Schulhof committed Jul 17, 2013
1 parent 8adff44 commit 9da71a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/popup.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9da71a4

Please sign in to comment.