diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-07-17 11:00:44 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-07-17 11:00:44 -0400 |
commit | 62446d957efb69cd53015919edf71501fcbd2599 (patch) | |
tree | e44efdddf58d62698cf26fc08d305091f6339c05 | |
parent | f7ee8524b3371663b2484299036c5e14363d5b71 (diff) | |
download | jquery-ui-62446d957efb69cd53015919edf71501fcbd2599.tar.gz jquery-ui-62446d957efb69cd53015919edf71501fcbd2599.zip |
Dialog: Fix removal of event listener for modal dialogs
Fixes #13649
-rw-r--r-- | ui/dialog.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/dialog.js b/ui/dialog.js index a9238329e..e58e0c8cc 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -860,9 +860,8 @@ $.widget( "ui.dialog", { var overlays = this.document.data( "ui-dialog-overlays" ) - 1; if ( !overlays ) { - this.document - .off( "focusin" ) - .removeData( "ui-dialog-overlays" ); + this._off( this.document, "focusin" ); + this.document.removeData( "ui-dialog-overlays" ); } else { this.document.data( "ui-dialog-overlays", overlays ); } |