MCPcopy Create free account
hub / github.com/angular-ui/ui-router / processParseErrors

Function processParseErrors

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

Source from the content-addressed store, hash-verified

23286 processAsyncValidators();
23287
23288 function processParseErrors() {
23289 var errorKey = ctrl.$$parserName || 'parse';
23290 if (parserValid === undefined) {
23291 setValidity(errorKey, null);
23292 } else {
23293 if (!parserValid) {
23294 forEach(ctrl.$validators, function(v, name) {
23295 setValidity(name, null);
23296 });
23297 forEach(ctrl.$asyncValidators, function(v, name) {
23298 setValidity(name, null);
23299 });
23300 }
23301 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
23302 setValidity(errorKey, parserValid);
23303 return parserValid;
23304 }
23305 return true;
23306 }
23307
23308 function processSyncValidators() {
23309 var syncValidatorsValid = true;

Callers 1

angular.jsFile · 0.70

Calls 2

setValidityFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected