Skip to content

Commit d2c424a

Browse files
committed
A null extent should set extent to infinities.
1 parent a5b538b commit d2c424a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,7 @@ d3.behavior.zoom = function() {
40004000

40014001
zoom.extents = function(x) {
40024002
if (!arguments.length) return extents;
4003-
extents = x == null ? Object : x;
4003+
extents = x == null ? (x = [-Infinity, Infinity], [x, x, x]) : x;
40044004
return zoom;
40054005
};
40064006

0 commit comments

Comments
 (0)