Work in progress on ResourceLoader mobilification
authorBrion Vibber <brion@pobox.com>
Thu, 11 Oct 2012 22:37:59 +0000 (15:37 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 18 Oct 2012 00:55:54 +0000 (00:55 +0000)
commit4b3a426ae08389436cd337a109de4888dc445250
tree8d7f382c785ffdbb8d74f7796e18d8bedc550232
parent5c8057bdcd6960e83899ed9cb2ea9d809d825871
Work in progress on ResourceLoader mobilification

Goes along with MobileFrontend changes: https://gerrit.wikimedia.org/r/28434

Adds 'targets' option to module definitions, defaulting to 'desktop'.
Only a couple more modules are whitelisted into both desktop and mobile for now.

Startup module takes a 'target' parameter (defaults to 'desktop') to filter
the resource module registration list. Only modules matching the filter get
registered, and thus will be loadable from client-side RL.

Change-Id: Ifb772d4995b8e2ec4b63776fe0bb5b0214f82e04
includes/resourceloader/ResourceLoaderFileModule.php
includes/resourceloader/ResourceLoaderModule.php
includes/resourceloader/ResourceLoaderStartUpModule.php
resources/Resources.php