Move switchToWikitext to switchToFallbackWikitext

This should be a no-op as the inherited switchToWikitext
implementation will always call switchToFallbackWikitext
if 'source' is not passed as a supported mode (which it
isn't currently in MobileFrontend).

Change-Id: I213e7d54d158127b5c42bc05ff9ea2dececc42fe
This commit is contained in:
Ed Sanders 2020-03-07 17:02:30 +00:00 committed by Bartosz Dziewoński
parent bc29a8cdd1
commit 8726a71342

View file

@ -352,7 +352,7 @@ ve.init.mw.MobileArticleTarget.prototype.loadFail = function ( code, errorDetail
/**
* @inheritdoc
*/
ve.init.mw.MobileArticleTarget.prototype.switchToWikitextEditor = function ( modified ) {
ve.init.mw.MobileArticleTarget.prototype.switchToFallbackWikitextEditor = function ( modified ) {
var dataPromise;
if ( modified ) {
dataPromise = this.getWikitextDataPromiseForDoc( modified ).then( function ( response ) {