mediawiki.util: Remove redundant file closures
Modules loaded with packageFiles are always executed in module scope (with a closure), even in debug mode. The behaviour of non-packageFiles debug mode is the only reason files have closures. Bug: T50886 Change-Id: I4c553961eab0f665e4ae123e11c92b255367fcfb
This commit is contained in:
parent
8697ba8354
commit
6f5535d3cc
3 changed files with 749 additions and 750 deletions
5
resources/src/mediawiki.util/.eslintrc.json
Normal file
5
resources/src/mediawiki.util/.eslintrc.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
*
|
||||
* @class jQuery.plugin.accessKeyLabel
|
||||
*/
|
||||
( function () {
|
||||
|
||||
// Cached access key modifiers for used browser
|
||||
var cachedAccessKeyModifiers,
|
||||
|
|
@ -235,5 +234,3 @@
|
|||
* @class jQuery
|
||||
* @mixins jQuery.plugin.accessKeyLabel
|
||||
*/
|
||||
|
||||
}() );
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
( function () {
|
||||
'use strict';
|
||||
|
||||
var util,
|
||||
|
|
@ -579,5 +578,3 @@
|
|||
|
||||
mw.util = util;
|
||||
module.exports = util;
|
||||
|
||||
}() );
|
||||
|
|
|
|||
Loading…
Reference in a new issue