From 57a30afc559f736a19364dc0d04116c72799d950 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 12 Nov 2012 07:51:39 +0100 Subject: [PATCH] Fix some JSHint issues Change-Id: Iecb1f2d2d326260075755070882b7706c1ae7db4 --- resources/js/ext.uls.geoclient.js | 4 ++-- resources/js/ext.uls.init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/ext.uls.geoclient.js b/resources/js/ext.uls.geoclient.js index c5a93691..a59667a2 100644 --- a/resources/js/ext.uls.geoclient.js +++ b/resources/js/ext.uls.geoclient.js @@ -29,7 +29,7 @@ return window.Geo && ( window.Geo.country || window.Geo.country_code ); }; - var currentProto, httpOnly, + var currentProto, httpOnly, settings, service = mw.config.get( 'wgULSGeoService' ); // Call the service only if defined, and if the current @@ -39,7 +39,7 @@ httpOnly = service.substring( 0, 7 ) === 'http://'; currentProto = document.location.protocol; if ( !httpOnly || currentProto === 'http:' ) { - var settings = { + settings = { cache: true, dataType: 'jsonp', jsonpCallback: 'mw.uls.setGeo' diff --git a/resources/js/ext.uls.init.js b/resources/js/ext.uls.init.js index 1d5e97a6..651ae868 100644 --- a/resources/js/ext.uls.init.js +++ b/resources/js/ext.uls.init.js @@ -73,7 +73,7 @@ .concat( mw.uls.getPreviousLanguages() ) .concat( mw.uls.getAcceptLanguageList() ); - countryCode = mw.uls.getCountryCode() + countryCode = mw.uls.getCountryCode(); if ( countryCode ) { list = list.concat( $.uls.data.getLanguagesInTerritory( countryCode ) ); }