diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 0c6726b0f7..5e55c385ed 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -1737,7 +1737,7 @@ ve.init.mw.ViewPageTarget.prototype.switchToWikitextEditor = function ( discardC } else { this.serialize( this.docToSave || ve.dm.converter.getDomFromModel( this.surface.getModel().getDocument() ), - ve.bind( this.submitWithSaveFields, this, { wpDiff: 1, veswitched: 1 } ) + this.submitWithSaveFields.bind( this, { wpDiff: 1, veswitched: 1 } ) ); } };