The problem is that the collection event that aggregates all the model events is not yet connected. This connection occurs in _add() . Since validation is not performed before the model is added, you will not receive the event.
The only sign of failure occurs when create returns false, but it looks like you already figured it out.
If you need validation errors, you will need to find a way to get errors from you.
One way would be to disable the EventAggregator message inside the validator. Another would be to bypass or override the Collection.create function to associate the error event with the model.
Something like that?
model = new Designer.Models.Comment() model.bind "error", @handleError if model.set body: $newComment.val() model.save success: -> @collection.add(model)
source share