Following the tutorials from this site: http://blog.krawaller.se/posts/the-reflux-data-flow-model/
I'm looking at replacing var chatRef
to a dummy data instead of using new Firebase(...)
as shown in the author example. Baffled how exactly this line read?
chatRef.on("value",this.updateChat.bind(this));
What is "value" and how bind
work?
Tried to use var chatRef = {0: "Hello", 1: "Hello"}
produce Uncaught TypeError: undefined is not a function