Skip to content

Commit

Permalink
Dialog: Fix removal of event listener for modal dialogs
Browse files Browse the repository at this point in the history
Fixes #13649
  • Loading branch information
scottgonzalez committed Jul 17, 2015
1 parent f7ee852 commit 62446d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 62446d9

Please sign in to comment.