From adcfb567613c9d5afc64137429397d632f22243b Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sun, 2 Aug 2015 12:29:41 +0100 Subject: [PATCH] ve.init.mw.Target#save: Bind this#onSave, not #onSave Change-Id: I62fbb6f31c0ddd17a1179fb4c2d8f13e44e9c9bb --- modules/ve-mw/init/ve.init.mw.Target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.Target.js b/modules/ve-mw/init/ve.init.mw.Target.js index 4443d392f3..c6cd4fd29b 100644 --- a/modules/ve-mw/init/ve.init.mw.Target.js +++ b/modules/ve-mw/init/ve.init.mw.Target.js @@ -1160,7 +1160,7 @@ ve.init.mw.Target.prototype.save = function ( doc, options ) { } ); this.saving = this.tryWithPreparedCacheKey( doc, data, 'save' ) - .done( ve.init.mw.Target.onSave.bind( this, doc, data ) ) + .done( this.onSave.bind( this, doc, data ) ) .fail( this.onSaveError.bind( this, doc, data ) ); return true;