mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Verify welcome dialog exists before trying to close it"
This commit is contained in:
commit
4fbb11e40a
|
@ -342,7 +342,9 @@ ve.init.mw.ViewPageTarget.prototype.deactivate = function ( noDialog, trackMecha
|
|||
}
|
||||
|
||||
// Just in case this wasn't closed before
|
||||
this.welcomeDialog.close();
|
||||
if ( this.welcomeDialog ) {
|
||||
this.welcomeDialog.close();
|
||||
}
|
||||
|
||||
if ( noDialog || this.activating || !this.edited ) {
|
||||
this.cancel( trackMechanism );
|
||||
|
|
Loading…
Reference in a new issue