Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Fixed 'this.firebase.child is not a function'
Browse files Browse the repository at this point in the history
  • Loading branch information
prust committed Jan 11, 2016
1 parent bcf0c14 commit 2667507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backbonefire.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2667507

Please sign in to comment.