Skip to content

Commit 88ef157

Browse files
committed
Remove index from root.add signature.
1 parent 15ec3e8 commit 88ef157

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

d3.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4528,12 +4528,13 @@ d3 = function() {
45284528
insert(n, d, x, y, x1, y1, x2, y2);
45294529
}
45304530
var root = d3_geom_quadtreeNode();
4531-
root.add = function(d, i) {
4532-
insert(root, d, +fx(d, i), +fy(d, i), x1_, y1_, x2_, y2_);
4531+
root.add = function(d) {
4532+
insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_);
45334533
};
45344534
root.visit = function(f) {
45354535
d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_);
45364536
};
4537+
i = -1;
45374538
points.forEach(root.add);
45384539
return root;
45394540
}

0 commit comments

Comments
 (0)