Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/233175

Change subject: build: Updating development dependencies
......................................................................

build: Updating development dependencies

* grunt-jscs: 1.8.0 → 2.1.0

Change-Id: I68e6135969ace5e1e7c646980ce23c5c0fe4dc84
---
M modules/ext.centralauth.centralautologin.js
M modules/ext.centralauth.globaluserautocomplete.js
M package.json
3 files changed, 7 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/75/233175/1

diff --git a/modules/ext.centralauth.centralautologin.js 
b/modules/ext.centralauth.centralautologin.js
index 7fc71c6..215888a 100644
--- a/modules/ext.centralauth.centralautologin.js
+++ b/modules/ext.centralauth.centralautologin.js
@@ -1,4 +1,5 @@
 ( function ( mw ) {
+       var url, params, len, param, i;
        // Are we already logged in?
        if ( mw.config.get( 'wgUserName' ) !== null ) {
                return;
@@ -22,7 +23,6 @@
        // Ok, perform the acutal logged-in check via a <script> tag. The
        // referenced URL will 302 a few times and then return appropriate
        // JavaScript to complete the process.
-       var url, params, len, param, i;
 
        url = mw.config.get( 'wgCentralAuthCheckLoggedInURL' );
        if ( url ) {
@@ -33,10 +33,10 @@
                        params = location.search.slice( 1 ).split( '&' );
                        len = params.length;
                        for ( i = 0; i < len; i++ ) {
-                               param = params[i].split( '=' );
-                               param = decodeURIComponent( param[0] );
+                               param = params[ i ].split( '=' );
+                               param = decodeURIComponent( param[ 0 ] );
                                if ( param === 'returnto' || param === 
'returntoquery' ) {
-                                       url += '&' + params[i];
+                                       url += '&' + params[ i ];
                                }
                        }
                }
diff --git a/modules/ext.centralauth.globaluserautocomplete.js 
b/modules/ext.centralauth.globaluserautocomplete.js
index 4f4a041..1e539d4 100644
--- a/modules/ext.centralauth.globaluserautocomplete.js
+++ b/modules/ext.centralauth.globaluserautocomplete.js
@@ -8,7 +8,7 @@
        config = {
                fetch: function ( userInput ) {
                        var $textbox = this,
-                               node = this[0];
+                               node = this[ 0 ];
 
                        api = api || new mw.Api();
 
@@ -27,7 +27,7 @@
                        } ) );
                },
                cancel: function () {
-                       var node = this[0],
+                       var node = this[ 0 ],
                                request = $.data( node, 'request' );
 
                        if ( request ) {
diff --git a/package.json b/package.json
index 66fb697..73a679a 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,6 @@
     "grunt-banana-checker": "0.2.2",
     "grunt-jsonlint": "1.0.4",
     "grunt-contrib-jshint": "0.11.2",
-    "grunt-jscs": "1.8.0"
+    "grunt-jscs": "2.1.0"
   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68e6135969ace5e1e7c646980ce23c5c0fe4dc84
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to