Merge "[BREAKING CHANGE] Use upstream tryTeardown instead of close in MobileArticleTarget"

This commit is contained in:
jenkins-bot 2018-03-26 16:12:35 +00:00 committed by Gerrit Code Review
commit ce425c1d56

View file

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