resourceloader: Remove redundant back-compat in mw.loader.addSource()
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 20 Nov 2015 00:48:01 +0000 (00:48 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 20 Nov 2015 01:19:45 +0000 (01:19 +0000)
commit13d9c4582f7b2e1b2f2050a2e0704f5aabbc9cb2
treeb72970ba32dec8f697bd6212adbb40f4442e24ab
parentcc8439be9d7760104c640e861a4226678032694b
resourceloader: Remove redundant back-compat in mw.loader.addSource()

Follows-up e103ba265b.

This method doesn't need to be backward-compatible as this is already
normalised server-side.

When upgrading from before MediaWiki 1.24 the startup response will
change to the new format and also inline a request to the newer
version of mediawiki.js.

Also update method documentation to be up to date and remove
spurious return statements that aren't used.

Change-Id: I03d1b5666fcddedaa46ecf878ee7636042a5e3be
includes/resourceloader/ResourceLoader.php
resources/src/mediawiki/mediawiki.js