protect.js: Remove JavaScript global variable window.ProtectionForm
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / protect.js
index b3707a5..4f89f7c 100644 (file)
@@ -4,7 +4,7 @@
                reasonCodePointLimit = mw.config.get( 'wgCommentCodePointLimit' ),
                reasonByteLimit = mw.config.get( 'wgCommentByteLimit' );
 
-       ProtectionForm = window.ProtectionForm = {
+       ProtectionForm = {
                /**
                 * Set up the protection chaining interface (i.e. "unlock move permissions" checkbox)
                 * on the protection form
                 * @return {boolean}
                 */
                matchAttribute: function ( objects, attrName ) {
-                       // eslint-disable-next-line jquery/no-map-util
+                       // eslint-disable-next-line no-jquery/no-map-util
                        return $.map( objects, function ( object ) {
                                return object[ attrName ];
                        } ).filter( function ( item, index, a ) {