{"action":"opened","issue":{"url":"https://api.github.com/repos/mourner/rbush-knn/issues/1","labels_url":"https://api.github.com/repos/mourner/rbush-knn/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mourner/rbush-knn/issues/1/comments","events_url":"https://api.github.com/repos/mourner/rbush-knn/issues/1/events","html_url":"https://github.com/mourner/rbush-knn/issues/1","id":86747965,"number":1,"title":"Error when # nearest items wanted exceeds items in rbush","user":{"login":"hulbert","id":592442,"avatar_url":"https://avatars.githubusercontent.com/u/592442?v=3","gravatar_id":"","url":"https://api.github.com/users/hulbert","html_url":"https://github.com/hulbert","followers_url":"https://api.github.com/users/hulbert/followers","following_url":"https://api.github.com/users/hulbert/following{/other_user}","gists_url":"https://api.github.com/users/hulbert/gists{/gist_id}","starred_url":"https://api.github.com/users/hulbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulbert/subscriptions","organizations_url":"https://api.github.com/users/hulbert/orgs","repos_url":"https://api.github.com/users/hulbert/repos","events_url":"https://api.github.com/users/hulbert/events{/privacy}","received_events_url":"https://api.github.com/users/hulbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T21:56:13Z","updated_at":"2015-06-09T21:56:13Z","closed_at":null,"body":"I get this error when doing something like `var neighbors = knn(tree, [coords.lng, coords.lat], 50)`\r\n\r\n```\r\n/repo/node_modules/rbush-knn/index.js:23\r\n        while (queue.peek()._knnItem && result.length < n) result.push(queue.p\r\n                           ^\r\nTypeError: Cannot read property '_knnItem' of undefined\r\n    at knn (/repo/node_modules/rbush-knn/index.js:23:28)\r\n```"}}