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

Commit

Permalink
Pass value to custom validation function.
Browse files Browse the repository at this point in the history
Validation function was not being passed value. I think you meant to do that.

PS: You guys will need a testing suite before you get in too deep. But I like you a lot more than angular.
  • Loading branch information
atotic committed Jun 11, 2014
1 parent 902c443 commit 0c19d25
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 @@ -199,7 +199,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 0c19d25

Please sign in to comment.