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:
Fomafix 2019-09-06 09:48:58 +02:00 committed by Krinkle
parent 8697ba8354
commit 6f5535d3cc
3 changed files with 749 additions and 750 deletions

View file

@ -0,0 +1,5 @@
{
"parserOptions": {
"sourceType": "module"
}
}

View file

@ -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
*/
}() );

View file

@ -1,4 +1,3 @@
( function () {
'use strict';
var util,
@ -579,5 +578,3 @@
mw.util = util;
module.exports = util;
}() );