Permalink
Browse files

Node style error handling in wax.tilejson

  • Loading branch information...
ansis committed Jul 19, 2012
1 parent 5a786cd commit b2c61c0fe5a4f87fcace788ce1ac0bbc3a639d6c
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/lib/tilejson.js
View
@@ -6,7 +6,7 @@ wax.tilejson = function(url, callback) {
url: url + (~url.indexOf('?') ? '&' : '?') + 'callback=grid',
type: 'jsonp',
jsonpCallback: 'callback',
- success: callback,
+ success: function(resp) { callback(null, resp); },
error: callback
});
};

0 comments on commit b2c61c0

Please sign in to comment.