mediawiki.jqueryMsg: Phase out redundant data module and minor clean up
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 8 Jun 2015 14:47:21 +0000 (15:47 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 9 Jun 2015 18:14:20 +0000 (19:14 +0100)
commit2dd9ec21dc5d5f2c25658b58a2dc9f564331e6e2
tree39784f428537c63388f18d5f20bb737c9da5c7f1
parentfb406cd28d8e8662e42a1a06fa59c1b8aeb7d8ce
mediawiki.jqueryMsg: Phase out redundant data module and minor clean up

Follows-up 4a3e50a54.

* Merge mediawiki.jqueryMsg.data and mediawiki.jqueryMsg modules.

  There's no need for this to be a separate module. The data is not for public consumption,
  it's provided to jqueryMsg only.

* Remove unused default-default values for 'allowedHtmlElements'.

* Remove conditionals around data providing at initial run-time. Instead, expose
  private method can call that. This way, we don't have two code paths claim
  ownership over the namespace. And it makes the module easier to test and re-use
  by not requiring the data to exist at first run time.

* Fix getDefinitionSummary() implementation to append data instead of setting
  arbitary keys in parent data. ResourceLoader documentation of getDefinitionSummary()
  has been updated to reflect this practice.

Change-Id: I40006d39514a997dce4930756a3dac84a0c9bb83
autoload.php
includes/resourceloader/ResourceLoaderJqueryMsgDataModule.php [deleted file]
includes/resourceloader/ResourceLoaderJqueryMsgModule.php [new file with mode: 0644]
resources/Resources.php
resources/src/mediawiki/mediawiki.jqueryMsg.js