mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "[BREAKING CHANGE] Use upstream tryTeardown instead of close in MobileArticleTarget"
This commit is contained in:
commit
ce425c1d56
|
@ -221,12 +221,6 @@ ve.init.mw.MobileArticleTarget.prototype.scrollToHeading = function ( headingNod
|
|||
} );
|
||||
};
|
||||
|
||||
/**
|
||||
* Close the mobile editor
|
||||
*/
|
||||
ve.init.mw.MobileArticleTarget.prototype.close = function () {
|
||||
};
|
||||
|
||||
/**
|
||||
* Done with the editing toolbar
|
||||
*/
|
||||
|
@ -273,7 +267,7 @@ ve.ui.MWBackCommand = function VeUiMWBackCommand() {
|
|||
};
|
||||
OO.inheritClass( ve.ui.MWBackCommand, ve.ui.Command );
|
||||
ve.ui.MWBackCommand.prototype.execute = function () {
|
||||
ve.init.target.close();
|
||||
ve.init.target.tryTeardown();
|
||||
};
|
||||
ve.ui.commandRegistry.register( new ve.ui.MWBackCommand() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue