Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preValidate method cannnot handle conditional validation. #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kochizufan
Copy link

As README says in
https://github.com/thedersen/backbone.validation#do-you-support-conditional-validation
Conditional validation is allowed, but in preValidate method, it cannnot work.
So I make patch for it.

@JProgrammer
Copy link
Contributor

I had the same problem and can confirm that this patch works.

I also created a similar solution but without introducing additional parameters to the method

[f095b48]

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