mediawiki-extensions-Visual.../modules/ve-mw
Roan Kattouw 6d22fd1aa7 Follow-up 8250c8ad54: unbreak ApiResponseCache
.set() should not overwrite existing deferreds; instead,
it should resolve the existing deferred if it's pending.
This is necessary because .set() is used by processResult().
Without this, passing .get() a title that no information
is known for results in a promise that is never resolved,
because the associated deferred is overwritten as soon
as the API response arrives.

Still make .set() a no-op if data has already been set,
by checking if the deferred is pending. For .resolve() this
doesn't matter, but for modifying this.cacheValues it does.

Bug: T107212
Change-Id: I70e8c5450f23062db214ccc5c585624d41de6509
2015-07-28 15:10:21 -07:00
..
ce Make missingref references uneditable, not uninspectable 2015-07-24 12:03:05 -07:00
dm Make missingref references uneditable, not uninspectable 2015-07-24 12:03:05 -07:00
i18n Localisation updates from https://translatewiki.net. 2015-07-28 21:51:17 +02:00
init Follow-up 8250c8ad54: unbreak ApiResponseCache 2015-07-28 15:10:21 -07:00
tests Localisation updates from https://translatewiki.net. 2015-07-28 21:51:17 +02:00
ui Trim external link before validating 2015-07-25 19:42:33 +01:00