resourceloader: Remove unused code from mw.loader.register()
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 24 Aug 2018 02:31:48 +0000 (03:31 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 26 Aug 2018 04:25:16 +0000 (05:25 +0100)
commite856b6638c2e22d6eae70c04e137511380818f86
treeae33348ecaf422d41a77987b67c67737289a9d37
parent8bc2f8522622324dfe3f9324de21a5cc16ae80e0
resourceloader: Remove unused code from mw.loader.register()

The optional 'dependencies' parameter is only ever used with
an array of strings, never just as a string.

Also fix the missing square-brackets around the parameter name
in the documentation that indicate the parameter as optional.
The code was already allowing it to be missing, and the server
does indeed omit it when a module has no dependencies.
(See ResourceLoaderStartupModuleTest for confirmation of that).

The server-side methods ResourceLoaderModule::getDependencies
and ResourceLoader::makeLoaderRegisterScript already don't
support string-type for this parameter.

Change-Id: I80a1e4b2eefb62e669c031e0d953bf74a9623264
resources/src/startup/mediawiki.js