mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Fix forwarding promise rejection arguments
Follow-up to arrow functions refactoring
(4db99d7a27
).
Change-Id: I6ea41256d9a91552736742100630aab333375125
This commit is contained in:
parent
bf22d07d2b
commit
02654c0086
|
@ -64,11 +64,11 @@
|
|||
true
|
||||
).then(
|
||||
( response ) => parseDocumentModulePromise.then( () => mw.libs.ve.diffLoader.getModelFromResponse( response, section ) ),
|
||||
() => {
|
||||
// Clear promise. Do not cache errors.
|
||||
( ...args ) => {
|
||||
// Clear promise. Do not cache errors.
|
||||
delete revCache[ cacheKey ];
|
||||
// Let caller handle the error code
|
||||
return $.Deferred().rejectWith( this, arguments );
|
||||
return $.Deferred().reject( ...args );
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue