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

Function processSyncValidators

test/angular/1.3/angular.js:23308–23322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23306 }
23307
23308 function processSyncValidators() {
23309 var syncValidatorsValid = true;
23310 forEach(ctrl.$validators, function(validator, name) {
23311 var result = validator(modelValue, viewValue);
23312 syncValidatorsValid = syncValidatorsValid && result;
23313 setValidity(name, result);
23314 });
23315 if (!syncValidatorsValid) {
23316 forEach(ctrl.$asyncValidators, function(v, name) {
23317 setValidity(name, null);
23318 });
23319 return false;
23320 }
23321 return true;
23322 }
23323
23324 function processAsyncValidators() {
23325 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