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

Commit d42c4f2

Browse files
author
Gabriel Schulhof
committed
Popup: Make sure close() only acts if the popup on which it is called is the currently open popup
1 parent 45442df commit d42c4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ define( [
815815

816816
close: function() {
817817
// make sure close is idempotent
818-
if( !$.mobile.popup.active ){
818+
if( $.mobile.popup.active !== this ) {
819819
return;
820820
}
821821

0 commit comments

Comments
 (0)