mw.special.ApiSandbox is not used anywhere, and it's an easy candidate for
converting to the new module export pattern.
This removes the last use of the 'mediawiki.special.js' file, which violates
T92459 due to having styles.
Change-Id: I9b6972d763f34d50479099d4d726d1c77a91c223
'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.css',
'scripts' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.js',
'dependencies' => [
- 'mediawiki.special',
'mediawiki.api',
'mediawiki.jqueryMsg',
'oojs-ui',
*
* @class mw.special.ApiSandbox
*/
- mw.special.ApiSandbox = ApiSandbox = {
+ ApiSandbox = {
/**
* Initialize the UI
*
$( ApiSandbox.init );
+ module.exports = ApiSandbox;
+
}( jQuery, mediaWiki, OO ) );