mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Fix forwarding promise rejection arguments"
This commit is contained in:
commit
8211bc5000
|
@ -96,11 +96,11 @@ function getPageData( pageName, oldId, apiParams ) {
|
||||||
linterrors: linterrors,
|
linterrors: linterrors,
|
||||||
transcludedfrom: transcludedfrom,
|
transcludedfrom: transcludedfrom,
|
||||||
metadata: metadata
|
metadata: metadata
|
||||||
} ), () => {
|
} ), ( ...args ) => {
|
||||||
// Clear on failure
|
// Clear on failure
|
||||||
pageDataCache[ pageName ][ oldId ] = null;
|
pageDataCache[ pageName ][ oldId ] = null;
|
||||||
// Let caller handle the error
|
// Let caller handle the error
|
||||||
return $.Deferred().rejectWith( this, arguments );
|
return $.Deferred().reject( ...args );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
if ( $.isEmptyObject( apiParams ) ) {
|
if ( $.isEmptyObject( apiParams ) ) {
|
||||||
|
|
Loading…
Reference in a new issue