Comments (5)
Just checking if the following was a typo, or intended to be this way:
cls = Backbone.Firebase.Collection.extend(
model: ChatMessage
firebase: firebase
.child('worlds')
.child(worldId)
.child('chat'))
.limit(50)
You have an extra bracket after 'chat', instead of the limit. Does the following work?
cls = Backbone.Firebase.Collection.extend(
model: ChatMessage
firebase: firebase
.child('worlds')
.child(worldId)
.child('chat')
.limit(50))
from backbonefire.
The bracket is unrelated. The error occurs at chatList.add()
.
I was copy/pasting some internal code and renaming things to make the example simpler. (Edited to fix 2 paren issues.)
from backbonefire.
did you find a way to do this? if I use your workaround when I update a model inside the controller, I get the error:
Uncaught TypeError: Object # has no method 'child' backbone-firebase.js:180
_updateModel backbone-firebase.js:180
c backbone-min.js:1
a.Events.trigger backbone-min.js:1
h.extend.set backbone-min.js:1
Backbone.Firebase.Collection.Backbone.Collection.extend._childChanged (...)
Something fails when adding an element.
from backbonefire.
Just a quick heads-up: the issue has been fixed in the last release.
from backbonefire.
Yes, this was fixed by e7a9c5b
from backbonefire.
Related Issues (20)
- Authentication HOT 2
- Backbone.Firebase.Model#urlRoot doesn't work as described HOT 7
- Idea about autoSync conflicting with Firebase rules HOT 2
- unable to override Backbone.Firebase.Model#sync (and friends) HOT 5
- Provide customization of initial data sync HOT 3
- Adding a model to a firebase collection changes its cid HOT 2
- Is there a way to get a disconnected error when offline? HOT 2
- Typo on Firebase backboneFire Page HOT 2
- goOffline support HOT 1
- goOffline support HOT 5
- Remove a model from a collection by id HOT 2
- Query on Firebase Model Error
- Update bower to use a newer Backbone version HOT 1
- Support for Atomic Multi-Write HOT 1
- Compatible with the new Firebase? HOT 14
- Travis CI not working properly
- Clever way to check for sync-status
- ReferenceError: Firebase is not defined line 153 in backbonefire.js HOT 3
- Doesn't work with latest Firebase
- Support for file upload?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbonefire.