backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

Pre validate multiple attributes

Open gmmorris opened this issue 9 years ago • 1 comments

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.

gmmorris avatar Aug 28 '15 09:08 gmmorris

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

blikblum avatar Apr 22 '18 16:04 blikblum