Skip to content

Commit

Permalink
add missing check for that.map
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Allen committed May 30, 2014
1 parent 28f4502 commit 1342ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion map/js/PetaCaleg.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@
} else {
that.content.call(utils.classify, "list-", "provinsi");
that.listProvinces(provinces, context);
that.map.zoomToInitialBounds();
if (that.map) {
that.map.zoomToInitialBounds();
}
return callback();
}
});
Expand Down

0 comments on commit 1342ef2

Please sign in to comment.