Add attr param to custom validator, closes #200

This commit is contained in:
Anatoliy Chakkaev 2013-01-30 22:30:31 +07:00
parent 5b33c2a0f1
commit 9f0dfeb58a
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ function validateFormat(attr, conf, err) {
* Custom validator
*/
function validateCustom(attr, conf, err, done) {
conf.customValidator.call(this, err, done);
conf.customValidator.call(this, err, attr, done);
}
/**