Add abort method to mw.api
authorjdlrobson <jdlrobson@gmail.com>
Fri, 4 Sep 2015 18:08:14 +0000 (11:08 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 9 Oct 2015 12:58:34 +0000 (14:58 +0200)
commit81171ab3eb6f8f82e9669585efb45fc665b65bb4
tree59f92daabfab4add5b26cc88fccfcd8c72424e20
parent02c959b0037eda5174d2460bbb8352f51e983d56
Add abort method to mw.api

The abort method allows you to cancel any requests currently pending
in the current class. Useful for cancelling no longer needed requests
due some user action (for example a user switching back to edit mode
from preview or a user cancelling multiple searches across different
lookup widgets)

Bug: T111245
Change-Id: Ie614b05fbfbddca38ea201e90053bebdd58da949
resources/src/mediawiki/api.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js