JS cleanup

Change-Id: I804d9f5e13f0c186da19cd31eae5156277f0f0d4
This commit is contained in:
Niklas Laxström
2012-08-30 13:55:33 +00:00
parent ad2dfcacd6
commit d738b0f117
2 changed files with 4 additions and 4 deletions

View File

@@ -1,13 +1,14 @@
( function( mw, $ ) {
"use strict";
window.setGeo = function ( data ) {
mw.uls.setGeo = function ( data ) {
window.GEO = data;
}
};
var settings = {
cache: true,
dataType: "jsonp",
jsonpCallback: "setGeo"
jsonpCallback: "mw.uls.setGeo"
};
$.ajax( mw.config.get( 'wgULSGeoService' ), settings );