Merge "Don't allow document save if we're already tearing down the surface"

This commit is contained in:
jenkins-bot 2014-07-16 20:45:24 +00:00 committed by Gerrit Code Review
commit 1ff53d1b77

View file

@ -865,6 +865,10 @@ ve.init.mw.ViewPageTarget.prototype.onSaveDialogReviewComplete = function ( wiki
* succeeds/fails.
*/
ve.init.mw.ViewPageTarget.prototype.saveDocument = function ( saveDeferred ) {
if ( this.deactivating ) {
return false;
}
var saveOptions = this.getSaveOptions();
this.emit( 'saveInitiated' );