mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
Remove unnecessary .promise() call
In the mediawiki gateway fetch uses mw.Api which when calling ajax returns a promise (not a deferred). Thus .promise() here is unnecessary and happens to work because of jQuery promises but it is not a standard method on JS promises so it shouldn't be used on promises, only on deferreds. Change-Id: Iec609b90bffad8b99b3908897dfb72d7c4ed5481
This commit is contained in:
parent
4adf63b024
commit
7169210406
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.json
vendored
BIN
resources/dist/index.js.json
vendored
Binary file not shown.
|
@ -73,8 +73,7 @@ export default function createMediaWikiApiGateway( api, config ) {
|
|||
return fetch( title )
|
||||
.then( extractPageFromResponse )
|
||||
.then( formatPlainTextExtract )
|
||||
.then( convertPageToModel )
|
||||
.promise();
|
||||
.then( convertPageToModel );
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue