* 'validator' property

This commit is contained in:
Bryan Ashby 2015-12-10 00:03:58 -07:00
parent ef96d55b3f
commit 964b899fe5
1 changed files with 8 additions and 1 deletions

View File

@ -224,6 +224,13 @@ View.prototype.setPropertyValue = function(propName, value) {
break;
case 'argName' : this.submitArgName = value; break;
case 'validate' :
console.log(value)
if(_.isFunction(value)) {
this.validate = value;
}
break;
}
if(/styleSGR[0-9]{1,2}/.test(propName)) {
@ -269,4 +276,4 @@ View.prototype.onKeyPress = function(ch, key) {
};
View.prototype.getData = function() {
};
};