When item of collection is changed
When a item of collection changed, collec开发者_运维知识库tions "change" trigger is fired or not? If not should i bind them myself? Do anybody give me an example about this?
the change
event is fired every time a model's attributes are changed. this event fires for the model itself and for any collection the model belongs to.
someCollection.bind("change", function(model, attributes){
// do something with the model, here
});
精彩评论