* 'validator' property
This commit is contained in:
@@ -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() {
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user