mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Expand recursive call protection in ve.ui.Window#close"
This commit is contained in:
commit
85b3808c9f
|
@ -326,10 +326,12 @@ ve.ui.Window.prototype.close = function ( action ) {
|
|||
this.$.hide();
|
||||
this.visible = false;
|
||||
this.onClose( action );
|
||||
this.closing = false;
|
||||
this.frame.$content.find( ':focus' ).blur();
|
||||
this.surface.getView().focus();
|
||||
this.emit( 'close', action );
|
||||
// Note that focussing the surface view calls an on focus event, which in turn will
|
||||
// try to close the window again, hence we put this.closing = false right at the bottom
|
||||
this.closing = false;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue