From d00393687300d2e2111040c48e6b5e811ea9296d Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Wed, 29 Jul 2015 06:33:30 +0530 Subject: [PATCH] mw.widgets.CalendarWidget: Silence jshint for one line, not entire file Follows up I6f760f7c32e2e6ed2008e897af72fb9e17dd663b Suppress warning at the specific line that uses the static keyword rather than the entire file. > Expected an identifier and instead saw 'static' (a reserved word). (W024) Change-Id: I0e4f9062b01b82893205da9e72c41acae3d6967f --- resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js b/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js index 0d743e48b0..9016e895b9 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js @@ -5,7 +5,6 @@ * @license The MIT License (MIT); see LICENSE.txt */ /*global moment */ -/*jshint es3: false */ ( function ( $, mw ) { /** @@ -474,7 +473,9 @@ */ mw.widgets.CalendarWidget.prototype.onKeyDown = function ( e ) { var + /*jshint -W024*/ dir = OO.ui.Element.static.getDir( this.$element ), + /*jshint +W024*/ nextDirectionKey = dir === 'ltr' ? OO.ui.Keys.RIGHT : OO.ui.Keys.LEFT, prevDirectionKey = dir === 'ltr' ? OO.ui.Keys.LEFT : OO.ui.Keys.RIGHT, updateInDirection = null; -- 2.20.1