Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 99d8e94

Browse files
committed
Merge pull request #33 from jshortall/master
fix closeQuery to only close itself
2 parents 9636299 + 84835cd commit 99d8e94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

firebase-element.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ <h3>My Firebase Data</h3>
349349
},
350350
closeQuery: function() {
351351
if (this.query) {
352-
this.query.off();
352+
this.query.off('child_added', this.childAdded, this);
353+
this.query.off('child_changed', this.childChanged, this);
354+
this.query.off('child_moved', this.childMoved, this);
355+
this.query.off('child_removed', this.childRemoved, this);
353356
}
354357
},
355358
//

0 commit comments

Comments
 (0)