Merge "Verify welcome dialog exists before trying to close it"

This commit is contained in:
jenkins-bot 2015-03-27 18:48:39 +00:00 committed by Gerrit Code Review
commit 4fbb11e40a

View file

@ -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 );