mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
6d22fd1aa7
.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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
i18n | ||
init | ||
tests | ||
ui |