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

Function processSyncValidators

lib/test/angular/1.4.3/angular.js:24912–24926  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24910 }
24911
24912 function processSyncValidators() {
24913 var syncValidatorsValid = true;
24914 forEach(ctrl.$validators, function(validator, name) {
24915 var result = validator(modelValue, viewValue);
24916 syncValidatorsValid = syncValidatorsValid && result;
24917 setValidity(name, result);
24918 });
24919 if (!syncValidatorsValid) {
24920 forEach(ctrl.$asyncValidators, function(v, name) {
24921 setValidity(name, null);
24922 });
24923 return false;
24924 }
24925 return true;
24926 }
24927
24928 function processAsyncValidators() {
24929 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 2

forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected