Add an explicit targets declaration for mediawiki.inspect & $.byteLength
authorOri Livneh <ori@wikimedia.org>
Fri, 11 Oct 2013 08:31:00 +0000 (01:31 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 11 Oct 2013 16:16:46 +0000 (09:16 -0700)
commit007acdc32b0d753c5ca957346fc5ac1c539586ed
tree3c85a70a3f73455df5eefd3e741ec78b422f93a0
parent415880ce2f5172e67af93eca33244db7a983ef2c
Add an explicit targets declaration for mediawiki.inspect & $.byteLength

Jon Robson said[1] he'd be interested in making mediawiki.inspect usable on
the mobile site by specifying both mobile & desktop targets explicitly in the
resource declaration. That's what this patch does. The cost to this is very
minimal because the module is never loaded by default. mw.loader.inspect()
wraps the call to the inspector with an mw.loader.using() call that causes the
module to be retrieved. It is not retrieved otherwise.

[1]: http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072381.html

Change-Id: I7cf292d3b8fb554bd1fc2143ca45399efccb70aa
resources/Resources.php