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 62446d957efb69cd53015919edf71501fcbd2599
Showing with 2 additions and 3 deletions.
  1. +2 −3 ui/dialog.js
View
@@ -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.