Remove redundant closure for all modules with packageFiles

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.

https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Closure

Change-Id: I7ea2057029a63148a96333af7ff09a7885d2daa8
This commit is contained in:
Fomafix 2024-10-03 19:03:53 +00:00
parent 0eb9b7d86c
commit 9c5ccf4b74

View file

@ -22,7 +22,6 @@
* @author Daniel Kinzler, brightbyte.de
*/
( function () {
const config = require( './data.json' );
/**
@ -194,5 +193,3 @@
// eslint-disable-next-line no-jquery/no-global-selector
attachHandler( $( '#p-categorytree-portlet' ) );
} );
}() );