Skip to content

Commit 47a3a74

Browse files
committed
Merge pull request #51 from codeforamerica/callback-in-options
Fix a call to callback() not in options that was missed in #35
2 parents 6c5c018 + 21232e5 commit 47a3a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Map.prototype = {
5757
var bounds = options.bounds;
5858
this._getData(bounds.minX, bounds.minY, bounds.maxX, bounds.maxY, function(error, shapes) {
5959
if (error) {
60-
callback(error);
60+
options.callback(error);
6161
console.error("ERROR! "+error);
6262
}
6363
else {

0 commit comments

Comments
 (0)