mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Fix deactivating VE after user explicitly decideas to discard changes"
This commit is contained in:
commit
d4cb743dd9
|
@ -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 );
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue