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

Function processSyncValidators

lib/test/angular/1.5.0/angular.js:26209–26223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26207 }
26208
26209 function processSyncValidators() {
26210 var syncValidatorsValid = true;
26211 forEach(ctrl.$validators, function(validator, name) {
26212 var result = validator(modelValue, viewValue);
26213 syncValidatorsValid = syncValidatorsValid && result;
26214 setValidity(name, result);
26215 });
26216 if (!syncValidatorsValid) {
26217 forEach(ctrl.$asyncValidators, function(v, name) {
26218 setValidity(name, null);
26219 });
26220 return false;
26221 }
26222 return true;
26223 }
26224
26225 function processAsyncValidators() {
26226 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 2

forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected