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

Async validations should not trump previous validations Part#2 #12

Merged
merged 1 commit into from Nov 26, 2011

Conversation

juggy
Copy link
Contributor

@juggy juggy commented Nov 25, 2011

Sorry found the error afterward.

@@ -116,7 +116,6 @@ Validatable.prototype.isValid = function (callback) {
var inst = this;
this.constructor._validations.forEach(function (v) {
if (v[2] && v[2].async) {
valid = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after removing this line need to modify also return statement, to always return false when async validation has been set up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that makes sense.

1602 added a commit that referenced this pull request Nov 26, 2011
Async validations should not trump previous validations Part#2
@1602 1602 merged commit 66e311f into 1602:master Nov 26, 2011
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.

None yet

2 participants