mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
ve.init.mw.Target#save: Bind this#onSave, not #onSave
Change-Id: I62fbb6f31c0ddd17a1179fb4c2d8f13e44e9c9bb
This commit is contained in:
parent
d32c390523
commit
adcfb56761
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue