Backbone.js validate collection

SuesseMip

New Member
Backbone.js offers validation for models. But there is no a simple way to check all models in collection are valid. No \[code\].isValid\[/code\] property for collections.I use a hack like this:\[code\]_.isEmpty(_.filter(myCollection.models, function(m) {return m.validationError;}))\[/code\]Is there more optimized way to 'validate' collection?
 
Back
Top