Open agruber opened 9 years ago
I think you need to pass in a model (or array of models) as opposed to the id. http://backbonejs.org/#Collection-remove
According to this answer in stack overflow it should work for regular backbone.js http://stackoverflow.com/questions/10400630/remove-a-backbone-model-by-id
When I try to remove a model from a Backbonefire collection, I get an error:
id = 'CuFqD1rcPb'; myCollection.remove(id);
Cannot assign to read only property 'id' of CuFqD1rcPb TypeError: Cannot assign to read only property 'id' of CuFqD1rcPb