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

Function validator

web/static/components/angularjs/angular.js:16908–16918  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

16906 if (isObject(validity)) {
16907 ctrl.$$hasNativeValidators = true;
16908 var validator = function(value) {
16909 // Don't overwrite previous validation, don't consider valueMissing to apply (ng-required can
16910 // perform the required validation)
16911 if (!ctrl.$error[validatorName] &&
16912 !testFlags(validity, ignoreFlags) &&
16913 testFlags(validity, badFlags)) {
16914 ctrl.$setValidity(validatorName, false);
16915 return;
16916 }
16917 return value;
16918 };
16919 ctrl.$parsers.push(validator);
16920 }
16921}

Callers 1

requiredDirectiveFunction · 0.85

Calls 1

testFlagsFunction · 0.85

Tested by

no test coverage detected