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:
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
/*
|
||||
@@ -211,4 +211,4 @@
|
||||
return unique;
|
||||
};
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
}() );
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
var DEFAULT_LIST_SIZE = 9;
|
||||
@@ -527,4 +527,4 @@
|
||||
$( createCompactList );
|
||||
}
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
mw.uls = mw.uls || {};
|
||||
@@ -58,4 +58,4 @@
|
||||
);
|
||||
};
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
}() );
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
var mwImeRulesPath, inputSelector, inputPreferences, ulsIMEPreferences, customHelpLink;
|
||||
@@ -323,4 +323,5 @@
|
||||
} );
|
||||
}
|
||||
};
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
}() );
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
@@ -448,4 +448,5 @@
|
||||
} else {
|
||||
$( init );
|
||||
}
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
var ULSPreferences;
|
||||
@@ -155,4 +155,4 @@
|
||||
return data;
|
||||
};
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* @licence MIT License
|
||||
*/
|
||||
|
||||
( function ( $, mw ) {
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
var mediawikiFontRepository;
|
||||
@@ -47,4 +47,5 @@
|
||||
|
||||
$( 'body' ).webfonts();
|
||||
} );
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
}() );
|
||||
|
||||
@@ -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 ) );
|
||||
}() );
|
||||
|
||||
Reference in New Issue
Block a user