MCPcopy Index your code
hub / github.com/angular-ui/ui-router / processSyncValidators

Function processSyncValidators

test/angular/1.7/angular.js:30670–30684  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30668 }
30669
30670 function processSyncValidators() {
30671 var syncValidatorsValid = true;
30672 forEach(that.$validators, function(validator, name) {
30673 var result = Boolean(validator(modelValue, viewValue));
30674 syncValidatorsValid = syncValidatorsValid && result;
30675 setValidity(name, result);
30676 });
30677 if (!syncValidatorsValid) {
30678 forEach(that.$asyncValidators, function(v, name) {
30679 setValidity(name, null);
30680 });
30681 return false;
30682 }
30683 return true;
30684 }
30685
30686 function processAsyncValidators() {
30687 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 3

validatorFunction · 0.85
forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected