Skip to content

Commit

Permalink
fixes #18223, fix dojox/validate/check regression
Browse files Browse the repository at this point in the history
  • Loading branch information
dylans committed Sep 2, 2014
1 parent 6012aed commit e39b936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/check.js
Expand Up @@ -282,7 +282,7 @@ validate.check = function(/*HTMLFormElement*/form, /*Object*/profile){
// if constraintResponse is false (backwards compatibility with last version) or if property isValid is false, return the invalid field name and/or the constraintResponse message
if(!constraintResponse){
invalid[invalid.length] = elem.name;
}else if(!constraintResponse.isValid){
}else if(typeof constraintResponse !== "boolean" && !constraintResponse.isValid){
invalid[invalid.length] = { field : elem.name, message : constraintResponse.message };
}
}
Expand Down

0 comments on commit e39b936

Please sign in to comment.