Skip to content

Pre validate multiple attributes#303

Closed
gmmorris wants to merge 2 commits intothedersen:masterfrom
gmmorris:preValidate-multiple-attributes
Closed

Pre validate multiple attributes#303
gmmorris wants to merge 2 commits intothedersen:masterfrom
gmmorris:preValidate-multiple-attributes

Conversation

@gmmorris
Copy link
Copy Markdown

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.

blikblum pushed a commit to blikblum/backbone.validation that referenced this pull request Apr 21, 2018
@blikblum
Copy link
Copy Markdown
Contributor

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

@gmmorris gmmorris closed this by deleting the head repository Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants