From 2da22711d0ab5c93ed32689288ef497e8321d7e7 Mon Sep 17 00:00:00 2001 From: Peter Rust Date: Sun, 10 Jan 2016 15:19:31 -0800 Subject: [PATCH] Fixed 'this.firebase.child is not a function' --- src/backbonefire.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backbonefire.js b/src/backbonefire.js index 0e208b5..9ac72f6 100644 --- a/src/backbonefire.js +++ b/src/backbonefire.js @@ -571,7 +571,7 @@ for (var i = 0; i < parsed.length; i++) { var model = parsed[i]; // XXX model prototype broken: this.model.prototype.idAttribute worked around as this.idAttribute - var childRef = this.firebase.child(model[this.idAttribute]); + var childRef = this.firebase.ref().child(model[this.idAttribute]); if (options.silent === true) { this._suppressEvent = true; }