Skip to content
Permalink
Browse files
Dialog: Fix removal of event listener for modal dialogs
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.
@@ -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 );
}

0 comments on commit 62446d9

Please sign in to comment.