ve.init.mw.Target#save: Bind this#onSave, not #onSave

Change-Id: I62fbb6f31c0ddd17a1179fb4c2d8f13e44e9c9bb
This commit is contained in:
Ed Sanders 2015-08-02 12:29:41 +01:00 committed by Jforrester
parent d32c390523
commit adcfb56761

View file

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