Skip to content

Commit

Permalink
item subscription fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barbuza committed Feb 8, 2016
1 parent f9c4e10 commit 2e1861f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kebakaran",
"version": "0.1.7",
"version": "0.1.8",
"description": "high level utilities for firebase interaction",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/FirebaseList.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export default class FirebaseList extends EventEmitter {
const key = c.key();
const item = new FirebaseStruct(this.getFields, key);

item.on('value', value => {
this.onValue(key, value);
});

this.values[key] = noValue;
this.keys.push(key);
this.items[key] = item;

item.on('value', value => {
this.onValue(key, value);
});

this.flush();
}

Expand Down

0 comments on commit 2e1861f

Please sign in to comment.