3 ms·
The bindings simply extend the Collection object and override certain methods on it (add, remove, etc.) to do the corresponding Firebase operations. We did run
by anant 14y ago
The bindings simply extend the Collection object and override certain methods on it (add, remove, etc.) to do the corresponding Firebase operations.
We did run into a few relatively minor issues; for example when doing a smart update to a collection, Backbone seems to trigger a remove event immediately followed by an add event for a model that hasn't changed.
We still have more work to do with the bindings (we don't have a Firebase.Model object for instance), but I don't expect any major roadblocks. All in all, piece of cake!
- jashkenas 14y ago> All in all, piece of cake! Glad to hear it! > when doing a smart update to a collection, Backbone seems > to trigger a remove event immediately followed by an add > event for a model that hasn't changed. That certainly doesn't sound right -- if you've got something reproducible there, I'd encourage you to open a ticket.