Fix some JSHint issues

Change-Id: Iecb1f2d2d326260075755070882b7706c1ae7db4
This commit is contained in:
Siebrand Mazeland
2012-11-12 07:51:39 +01:00
parent edccab07d2
commit 57a30afc55
2 changed files with 3 additions and 3 deletions

View File

@@ -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'

View File

@@ -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 ) );
}