MCPcopy Create free account
hub / github.com/binux/qiandao / validate

Function validate

web/static/components/angularjs/angular.js:16886–16889  ·  view source on GitHub ↗
(ctrl, validatorName, validity, value)

Source from the content-addressed store, hash-verified

16884// A helper function to call $setValidity and return the value / undefined,
16885// a pattern that is repeated a lot in the input validation logic.
16886function validate(ctrl, validatorName, validity, value){
16887 ctrl.$setValidity(validatorName, validity);
16888 return validity ? value : undefined;
16889}
16890
16891function testFlags(validity, flags) {
16892 var i, flag;

Callers 8

validateRegexFunction · 0.85
minLengthValidatorFunction · 0.85
maxLengthValidatorFunction · 0.85
minValidatorFunction · 0.85
maxValidatorFunction · 0.85
numberInputTypeFunction · 0.85
urlValidatorFunction · 0.85
emailValidatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected