diff --git a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js index 10a31ff9d0..efe0e384a3 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js @@ -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() );