ResourceLoader: expose registry as mediaWiki.loader.moduleRegistry
authorOri Livneh <ori@wikimedia.org>
Wed, 25 Sep 2013 16:06:41 +0000 (09:06 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 25 Sep 2013 17:52:45 +0000 (19:52 +0200)
commit9374fb34ef34d855e8d9c621547b2c09527b1950
tree9a83a791a4093a36ad971d440c0faf009ea2a83a
parentad429498c153bbeac1fcb6e89f902e6240707945
ResourceLoader: expose registry as mediaWiki.loader.moduleRegistry

This patch exports the ResourceLoader registry object as a public member of
mw.loader. I understand that it is not properly a part of the public API
ResourceLoader exposes to JavaScript code; it is an internal data structure and
ResourceLoader does not expect to have anything modify it except ResourceLoader
itself. At the same time, it provides a trove of extremely valuable data for
debugging and profiling, and it's annoying as hell not to be able to poke and
prod it from the JS console. So my hope is that we do the Python thing of
treating 'private' as a tip and social convention rather than something that is
enforced by the code.

Change-Id: I1c47970aa9fceb0b2ded9008efc926b46fa08f51
resources/mediawiki/mediawiki.js