documentcloud/backbone — Issue #1057: Validation does not occur when calling Model.save(attrs, {wait: true})
Author: osi
Created: 2012-02-28 21:12:00+00:00
State: open

When using {wait: true}, saving a model does not invoke validation due to the internal behavior of save using 'silent' to achieve the 'wait' semantics.

By modifying 'validate' to be:

if ((options.silent && !options.wait) || !this.validate) {
return true;
}

validation properly occurs when using wait