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

Function processSyncValidators

lib/test/angular/1.7.0/angular.js:29773–29787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29771 }
29772
29773 function processSyncValidators() {
29774 var syncValidatorsValid = true;
29775 forEach(that.$validators, function(validator, name) {
29776 var result = Boolean(validator(modelValue, viewValue));
29777 syncValidatorsValid = syncValidatorsValid && result;
29778 setValidity(name, result);
29779 });
29780 if (!syncValidatorsValid) {
29781 forEach(that.$asyncValidators, function(v, name) {
29782 setValidity(name, null);
29783 });
29784 return false;
29785 }
29786 return true;
29787 }
29788
29789 function processAsyncValidators() {
29790 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 2

forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected