JSHint fixes

* variables in one line
* double quote , single quote consistancy
* Unused variables

Change-Id: Id368190e7c4f46c8ef09deea88a0d5a7b32889ef
This commit is contained in:
Santhosh Thottingal
2012-10-16 16:55:53 +05:30
parent 400f401d4e
commit 7b30aa7f1a
2 changed files with 45 additions and 32 deletions

View File

@@ -18,7 +18,7 @@
*/
( function ( mw, $ ) {
"use strict";
'use strict';
mw.uls = mw.uls || {};
mw.uls.setGeo = function ( data ) {
@@ -26,13 +26,14 @@
};
mw.uls.getCountryCode = function () {
/*jshint camelcase: false*/
return window.GEO && ( window.GEO.country || window.GEO.country_code );
};
var settings = {
cache: true,
dataType: "jsonp",
jsonpCallback: "mw.uls.setGeo"
dataType: 'jsonp',
jsonpCallback: 'mw.uls.setGeo'
};
$.ajax( mw.config.get( 'wgULSGeoService' ), settings );