Skip to content

Update kdTree.js#5

Open
philogb wants to merge 1 commit into
ubilabs:masterfrom
philogb:patch-1
Open

Update kdTree.js#5
philogb wants to merge 1 commit into
ubilabs:masterfrom
philogb:patch-1

Conversation

@philogb

@philogb philogb commented Oct 30, 2013

Copy link
Copy Markdown

When content.length is less than maxNodes then that line would fail.

When `content.length` is less than `maxNodes` then that line would fail.
@aemkei

aemkei commented Oct 31, 2013

Copy link
Copy Markdown
Member

Shouldn't it be:

if (
  bestNodes.content[i] && 
  bestNodes.content[i][0]
) {
  ...
}

?

@philogb

philogb commented Oct 31, 2013

Copy link
Copy Markdown
Author

The more checks the better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants