Skip to content

Commit

Permalink
Merge pull request #18 from twpayne/speed-up-remove
Browse files Browse the repository at this point in the history
Speed up remove by about 50%
  • Loading branch information
mourner committed Nov 25, 2013
2 parents 09b048f + d3bf777 commit 6054e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbush.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ rbush.prototype = {
}
}

if (!goingUp && !node.leaf && this._intersects(bbox, node.bbox)) { // go down
if (!goingUp && !node.leaf && this._contains(node.bbox, bbox)) { // go down
path.push(node);
indexes.push(i);
i = 0;
Expand Down

0 comments on commit 6054e83

Please sign in to comment.