Remove redundant closure aliases

'mw' are '$' are globals, always have been, and aren't going
anywhere. They're every bit as real as their longer versions.
If anything, the longer ones are less "real" or 'stable" because
they're not used internally by RL and easier to accidentally
replace or override. For anecdotes and history, see 91f950d6b0.

Change-Id: I526fb8c961d9477992d88f2780a0ff4cbdc51923
This commit is contained in:
Timo Tijhof authored and Krinkle committed 2018-09-07 19:23:17 +00:00
1 parent e58be7c411
commit 4e067715dc
18 files changed
+43 -36

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
/*
@@ -211,4 +211,4 @@
return unique;
};
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var DEFAULT_LIST_SIZE = 9;
@@ -527,4 +527,4 @@
$( createCompactList );
}
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var template = '<div class="uls-display-settings">' +
@@ -733,4 +733,4 @@
$.fn.languagesettings.modules = $.extend( $.fn.languagesettings.modules, {
display: DisplaySettings
} );
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
/**
@@ -245,4 +245,4 @@
mw.uls = mw.uls || {};
mw.uls.eventlogger = new ULSEventLogger();
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var geo,
@@ -44,4 +44,5 @@
window.Geo = data;
mw.cookie.set( 'ULSGeo', JSON.stringify( data ), cacheAge );
} );
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
mw.uls = mw.uls || {};
@@ -58,4 +58,4 @@
);
};
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var mwImeRulesPath, inputSelector, inputPreferences, ulsIMEPreferences, customHelpLink;
@@ -323,4 +323,5 @@
} );
}
};
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var template = '<div class="uls-input-settings">' +
@@ -591,4 +591,4 @@
input: InputSettings
} );
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
/**
@@ -448,4 +448,5 @@
} else {
$( init );
}
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var closeRow, settingsMenu, settingsPanel, windowTemplate, panelsRow, buttonsRow;
@@ -314,4 +314,5 @@
};
$.fn.languagesettings.Constructor = LanguageSettings;
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
// MediaWiki overrides for ULS defaults
@@ -30,4 +30,5 @@
$.fn.uls.Constructor.prototype.render = function () {
this.$languageFilter.addClass( 'noime' );
};
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -18,7 +18,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var ULSPreferences;
@@ -155,4 +155,4 @@
return data;
};
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var ulsPreferences;
@@ -138,4 +138,5 @@
mw.loader.using( 'ext.uls.webfonts.fonts', mw.webfonts.setup );
}
} );
}( jQuery, mediaWiki ) );
}() );
+3 -2
View File
@@ -17,7 +17,7 @@
* @licence MIT License
*/
( function ( $, mw ) {
( function () {
'use strict';
var mediawikiFontRepository;
@@ -47,4 +47,5 @@
$( 'body' ).webfonts();
} );
}( jQuery, mediaWiki ) );
}() );
+2 -2
View File
@@ -1,5 +1,5 @@
// Do not edit! This file is generated from data/fontrepo by scripts/compile-font-repo.php
( function ( $ ) {
( function () {
$.webfonts = $.webfonts || {};
$.webfonts.repository = {
"base": "../data/fontrepo/fonts/",
@@ -761,4 +761,4 @@
}
}
};
}( jQuery ) );
}() );