googlearchive / firebase-util

An experimental toolset for Firebase
http://firebase.github.io/firebase-util
MIT License
276 stars 67 forks source link

Normalized ref fires on('value') event only the first time #73

Open maxrevilo opened 8 years ago

maxrevilo commented 8 years ago

Look at this fiddle: http://jsfiddle.net/maxrevilo/rj3rnb2r/2/

If I attach two or more on('value',..) event listeners to the same normalized ref at the same time they work as expected, all the listeners fire. But if I attach them one after the execution of the previous, only the first one fires. And this doesn't happen with the raw firebase refs.

I hope I've explained myself well.

I would submit a PR, but please give me a hint of where the problem could be.