resourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 13 May 2015 18:23:26 +0000 (19:23 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 14 May 2015 21:44:36 +0000 (22:44 +0100)
commitd9fbce0b76994d06f6a6ce166485e0ce44a9525d
treeec8c40b1793d08cd0c810ef9fbe018e5071c82af
parente6af67f40674911ece14a27b20e47c84d1774372
resourceloader: Implement ResourceLoaderRawFileModule for 'mediawiki.js'

When adding files to this module, they all imply a global scope.
While most files have their own closure, it is still inconsistent
with normal modules which always have a closure via mw.loader.implement.

Base modules like 'mediawiki' are lacking such a closure, thus making
it hard to share variables within the different files that make up the
module without making it a globally public.

The use case is 13203c0a2180e5, where we could expose the sha1()
library within the scope of this module only.

Change-Id: I93fcd045f47ec6a595b26f739939e1d371832ac9
autoload.php
includes/resourceloader/ResourceLoaderRawFileModule.php [new file with mode: 0644]
resources/Resources.php