Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #4 from atotic/patch-1
Browse files Browse the repository at this point in the history
Pass value to custom validation function.
  • Loading branch information
Yvonne Yip committed Jul 7, 2014
2 parents fbda98e + 0c19d25 commit 3163f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
} else if (this.validate.exec) {
valid = this.validate.exec(this.inputValue);
} else if (this.validate instanceof Function) {
valid = this.validate.call(this.inputValue);
valid = this.validate.call(this, this.inputValue);
}
this.invalid = !valid;
},
Expand Down

0 comments on commit 3163f36

Please sign in to comment.