Skip to content

Commit

Permalink
Core: Add "method" field to error list entry
Browse files Browse the repository at this point in the history
To check what kind of validation rule was broken, so we could find a
difference between required or regex validation error raised.

Closes #1035
  • Loading branch information
YuraDubensky authored and jzaefferer committed Mar 31, 2014
1 parent 6c041ed commit 89a15c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.js
Expand Up @@ -668,7 +668,8 @@ $.extend($.validator, {
}
this.errorList.push({
message: message,
element: element
element: element,
method: rule.method
});

this.errorMap[element.name] = message;
Expand Down

0 comments on commit 89a15c7

Please sign in to comment.