resourceloader: Create mediawiki.base.js and move mw.inspect to it
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.base.js
1 /*!
2 * This file is currently loaded as part of the 'mediawiki' module and therefore
3 * concatenated to mediawiki.js and executed at the same time. This file exists
4 * to help prepare for splitting up the 'mediawiki' module.
5 * This effort is tracked at https://phabricator.wikimedia.org/T192623
6 *
7 * In short:
8 *
9 * - mediawiki.js will be reduced to the minimum needed to define mw.loader and
10 * mw.config, and then moved to its own private "mediawiki.loader" module that
11 * can be embedded within the StartupModule response.
12 *
13 * - mediawiki.base.js and other files in this directory will remain part of the
14 * "mediawiki" module, and will remain a default/implicit dependency for all
15 * regular modules, just like jquery and wikibits already are.
16 */
17 /* globals mw */
18 ( function () {
19 /**
20 * @class mw
21 * @singleton
22 */
23
24 /**
25 * @inheritdoc mw.inspect#runReports
26 * @method
27 */
28 mw.inspect = function () {
29 var args = arguments;
30 mw.loader.using( 'mediawiki.inspect', function () {
31 mw.inspect.runReports.apply( mw.inspect, args );
32 } );
33 };
34 }() );