Skip to content

Commit

Permalink
js scoping again
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed Oct 15, 2011
1 parent c25dd8e commit a614677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/js/ire_census.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ var ire_census = {};
this.GEOAPI_URL = "http://census.ire.org/geo/1.0" this.GEOAPI_URL = "http://census.ire.org/geo/1.0"


function apiRequest(path, callback, handler) { function apiRequest(path, callback, handler) {
$.ajax(this.API_URL + path, { var api_url = this.API_URL;
console.log("apiRequest: " + api_url);
$.ajax(api_url + path, {
dataType: "jsonp", dataType: "jsonp",
jsonpCallback: callback, jsonpCallback: callback,
success: handler success: handler
Expand Down

0 comments on commit a614677

Please sign in to comment.