(bug 36783) Implement Promise interface in mediawiki.api module.
authorTimo Tijhof <ttijhof@wikimedia.org>
Thu, 7 Jun 2012 20:45:53 +0000 (22:45 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sun, 8 Jul 2012 18:56:28 +0000 (20:56 +0200)
commit031910f7fef4ac2c319848a22ea3ad707163aef3
tree8d18bb0ad62e2dfd68e31200d87a503d487104ac
parent56cba166bd43477ff787d3a055abeb3d993daebd
(bug 36783) Implement Promise interface in mediawiki.api module.

- Deprecates 'ok'/'err' properties.
  They still work, but are no longer mandatory.
  Instead the Promise interface should used.

- See unit tests for good examples of how it works.
  http://alpha.dev/mediawiki/core/wiki/Special:JavaScriptTest/qunit?module=mediawiki.api

- Migrated submodule "mediawiki.api.parse" as example.
  Other mediawiki.api.* submodules will be migrated later.

Change-Id: I4d8428124598093f220dd28a8cbf861686ab61a7
RELEASE-NOTES-1.20
resources/mediawiki.api/mediawiki.api.js
resources/mediawiki.api/mediawiki.api.parse.js
tests/qunit/QUnitTestResources.php
tests/qunit/data/testrunner.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.parse.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js [new file with mode: 0644]