backbone.validation
backbone.validation copied to clipboard
Pre validate multiple attributes
Fixed a bug where the computedState wasn't being passed correctly to the validation functions on preValidate (assuming this is the required behaviour, as it is the way the regular validate works), but rather it was passing the current model's attributes, without the fresh attributes passed to preValidate, essentially breaking validation functions which depend on computer state.
This is fixed in a fork i'm maintaining (tried contact this repository admins without luck): https://github.com/blikblum/backbone.validation
The updated package can be found at https://www.npmjs.com/package/backbone.validation
To use with node: npm install backbone.validation