firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.45k stars 345 forks source link

geo.onPointsNearId returns multiple objects in array #4

Closed abinop closed 10 years ago

abinop commented 11 years ago

See here http://snipt.org/Ahhl6

when I call the following more than once (and after geo.offPointsNearId)

geo.onPointsNearId(id, distance, function(array) {
    console.log(array);
});

the returned array contains multiple elements of the same objects

jwngr commented 10 years ago

Hey @abinop, sorry never responding to this problem. This was one of many issues with GeoFire, but thankfully almost all of them have been resolved with our upcoming 2.0.0 release. The API is brand new and should be much easier to use. You can check it out in the v2 branch or wait until next Monday when it will go live and be merged into master.

I'm closing this since this issue is not present in the new API.