MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / processSyncValidators

Function processSyncValidators

lib/test/angular/1.8.0/angular.js:30735–30749  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30733 }
30734
30735 function processSyncValidators() {
30736 var syncValidatorsValid = true;
30737 forEach(that.$validators, function(validator, name) {
30738 var result = Boolean(validator(modelValue, viewValue));
30739 syncValidatorsValid = syncValidatorsValid && result;
30740 setValidity(name, result);
30741 });
30742 if (!syncValidatorsValid) {
30743 forEach(that.$asyncValidators, function(v, name) {
30744 setValidity(name, null);
30745 });
30746 return false;
30747 }
30748 return true;
30749 }
30750
30751 function processAsyncValidators() {
30752 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 2

forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected