Skip to content

preValidate method cannnot handle conditional validation.#213

Open
kochizufan wants to merge 1 commit intothedersen:masterfrom
kochizufan:prevalidate_fix
Open

preValidate method cannnot handle conditional validation.#213
kochizufan wants to merge 1 commit intothedersen:masterfrom
kochizufan:prevalidate_fix

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.

@cmcrothers
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