thedersen/backbone.validation — Issue #7: silent:true on model.set() in the bind() method
Author: GarethElms
Created: 2011-12-27 17:23:04+00:00
State: open

Hi,

Great work, I'm using this project in my app. I had to add silent:true to the model.set() call when you're setting isValid in the bind() method.

Without silent:true the model's change event fired twice which caused my code to try to add the model to the collection twice.

model.set({
isValid: isValid},
{silent:true});

You may want to add this to the code because it's probably not desirable to have isValid trigger the change event

See my fork here :

https://github.com/GarethElms/backbone.validation/commit/d2f03bee80676b1ccea03790e051ac34018bdc6c