}
if(typeof this.validator == "function"){
var msg = this.validator(value);
- if(msg !== true){
- return false;
- }
if (typeof(msg) == 'string') {
this.invalidText = msg;
}
+ if(msg !== true){
+ return false;
+ }
}
if(this.regex && !this.regex.test(value)){