* 'validator' property
This commit is contained in:
parent
ef96d55b3f
commit
964b899fe5
|
@ -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() {
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue