From 84835cd0474fd4238336590c0be674cb165a379f Mon Sep 17 00:00:00 2001 From: Jason Shortall Date: Fri, 19 Dec 2014 11:23:48 -0500 Subject: [PATCH] fix closeQuery to only close itself this.query.off(); called with no parameters closes all Firebase listeners at that location. It should instead be called with the original eventType, callback and context passed in. --- firebase-element.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firebase-element.html b/firebase-element.html index 353c668..9ae4d0d 100644 --- a/firebase-element.html +++ b/firebase-element.html @@ -341,7 +341,10 @@

My Firebase Data

}, closeQuery: function() { if (this.query) { - this.query.off(); + this.query.off('child_added', this.childAdded, this); + this.query.off('child_changed', this.childChanged, this); + this.query.off('child_moved', this.childMoved, this); + this.query.off('child_removed', this.childRemoved, this); } }, //