From d1b54f2b70d0197738f000837cdc523b6c832e9a Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 16 Nov 2018 15:26:04 +0000 Subject: [PATCH] Remove obsolete aliases from closures Bug: T208951 Change-Id: I0949da208d4df1d2fd1f85541f55f092da527400 --- .eslintrc.json | 7 +++++-- resources/main.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9fad52a..c0d39eb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,10 @@ { "extends": "wikimedia", "env": { - "browser": true, - "jquery": true + "browser": true + }, + "globals": { + "mw": false, + "$": false } } diff --git a/resources/main.js b/resources/main.js index 57ff859..ce8cbf1 100644 --- a/resources/main.js +++ b/resources/main.js @@ -1,7 +1,7 @@ /** * Timeless-specific scripts */ -jQuery( function ( $ ) { +$( function () { /** * Focus on search box when 'Tab' key is pressed once