Make mw.user.options and mw.user.tokens work in debug mode in IE. Now that mw.user...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 05:48:57 +0000 (05:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 05:48:57 +0000 (05:48 +0000)
commita2afc812cadcd3306e290559ff811f75bea64f08
tree643fc0edc904b729d6cdf6a9235f546f08fa0a09
parent62a3e10fea063972e181e494979eb18a3497c0b2
Make mw.user.options and mw.user.tokens work in debug mode in IE. Now that mw.user is a separate module, we have to make these depend on that and make sure dependencies are actually processed.
* Make ResourceLoaderUserOptionsModule and ResourceLoaderUserTokensModule depend on mw.user
* Load mw.user.{tokens,options,groups} load as TYPE_COMBINED instead of TYPE_SCRIPT. The latter wouldn't wrap the code in mw.loader.implement()
** ...but make sure 'user' (user scripts) is excluded, that one needs to not be wrapped in a closure
* Make TYPE_COMBINED actually work in makeResourceLoaderLink()
* Add a comment in makeModuleResponse() to explain what the weird is_array( $scripts ) stuff is all about
* Add FIXME about how mw.user.options should split off the CSS part into a separate module
includes/OutputPage.php
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderUserOptionsModule.php
includes/resourceloader/ResourceLoaderUserTokensModule.php