From b61ad3a9a7b0cfc643fc10ea25360b736cdc92c0 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 16 Nov 2018 15:35:52 +0000 Subject: [PATCH] Remove obsolete aliases from closures Bug: T208951 Change-Id: I6ca9ca80473317e44a10c268c7058bc2cf4d7b58 --- .eslintrc.json | 7 +++++-- collapsibleTabs.js | 4 ++-- vector.js | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9fad52a14..2435bff0d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,10 @@ { "extends": "wikimedia", "env": { - "browser": true, - "jquery": true + "browser": true + }, + "globals": { + "$": false, + "mw": false } } diff --git a/collapsibleTabs.js b/collapsibleTabs.js index 33e8967e4..b80481521 100644 --- a/collapsibleTabs.js +++ b/collapsibleTabs.js @@ -3,7 +3,7 @@ * * @class jQuery.plugin.collapsibleTabs */ -( function ( $ ) { +( function () { var isRTL = document.documentElement.dir === 'rtl', boundEvent = false, rAF = window.requestAnimationFrame || setTimeout; @@ -228,4 +228,4 @@ * @mixins jQuery.plugin.collapsibleTabs */ -}( jQuery ) ); +}() ); diff --git a/vector.js b/vector.js index 3b513f9cc..4e8c5a06e 100644 --- a/vector.js +++ b/vector.js @@ -1,7 +1,7 @@ /** * Vector-specific scripts */ -jQuery( function ( $ ) { +$( function () { /** * Collapsible tabs