Skip to content

Commit 95f6137

Browse files
committed
Use hasOwnProperty in d3.geo.bounds.
This one's difficult to test for, and unlikely to occur in practice, but probably best to amend for consistency.
1 parent 19dd294 commit 95f6137

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

d3.v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7393,7 +7393,7 @@ d3.geo.bounds = function(feature) {
73937393
};
73947394

73957395
function d3_geo_bounds(o, f) {
7396-
if (o.type in d3_geo_boundsTypes) d3_geo_boundsTypes[o.type](o, f);
7396+
if (d3_geo_boundsTypes.hasOwnProperty(o.type)) d3_geo_boundsTypes[o.type](o, f);
73977397
}
73987398

73997399
var d3_geo_boundsTypes = {

0 commit comments

Comments
 (0)