Open chemoish opened 10 years ago
Oh the good ole days. If we start to use this I'll update the documentation and the page to be less crappy. Hopefully not repeat so much documentation, but give a head start.
http://backbonejs.org/#Collection
Any event that is triggered on a model in a collection will also be triggered on the collection directly, for convenience. This allows you to listen for changes to specific attributes in any model in a collection, for example: documents.on("change:selected", ...)
The biggest point of note is model.delete() calling collection.delete()