Merge "Fix deactivating VE after user explicitly decideas to discard changes"

This commit is contained in:
jenkins-bot 2016-05-10 22:57:32 +00:00 committed by Gerrit Code Review
commit d4cb743dd9

View file

@ -499,7 +499,7 @@ ve.init.mw.DesktopArticleTarget.prototype.deactivate = function ( noDialog, trac
opened.then( function ( closing ) {
closing.then( function ( data ) {
if ( data && data.action === 'discard' ) {
this.emit( 'deactivate' );
target.emit( 'deactivate' );
target.cancel( trackMechanism );
}
} );