jenkins-bot has submitted this change and it was merged.

Change subject: mw.widgets.CalendarWidget: Silence jshint for one line, not 
entire file
......................................................................


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
---
M resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js 
b/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js
index 0d743e4..9016e89 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;

-- 
To view, visit https://gerrit.wikimedia.org/r/227628
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0e4f9062b01b82893205da9e72c41acae3d6967f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
Gerrit-Reviewer: Bartosz DziewoƄski <[email protected]>
Gerrit-Reviewer: Edokter <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Mooeypoo <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to