Permalink
Browse files

js scoping again

  • Loading branch information...
1 parent c25dd8e commit a614677c358a1395ad29183f769de983f7b4b32f @JoeGermuska JoeGermuska committed Oct 15, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 tools/js/ire_census.js
View
@@ -6,7 +6,9 @@ var ire_census = {};
this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
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",
jsonpCallback: callback,
success: handler

0 comments on commit a614677

Please sign in to comment.