Merge "mw.widgets.CalendarWidget: Silence jshint for one line, not entire file"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 29 Jul 2015 15:53:37 +0000 (15:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 29 Jul 2015 15:53:37 +0000 (15:53 +0000)
resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js

index 0d743e4..9016e89 100644 (file)
@@ -5,7 +5,6 @@
  * @license The MIT License (MIT); see LICENSE.txt
  */
 /*global moment */
-/*jshint es3: false */
 ( function ( $, mw ) {
 
        /**
         */
        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;