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

Function processParseErrors

test/angular/1.5/angular.js:28241–28259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28239 processAsyncValidators();
28240
28241 function processParseErrors() {
28242 var errorKey = ctrl.$$parserName || 'parse';
28243 if (isUndefined(parserValid)) {
28244 setValidity(errorKey, null);
28245 } else {
28246 if (!parserValid) {
28247 forEach(ctrl.$validators, function(v, name) {
28248 setValidity(name, null);
28249 });
28250 forEach(ctrl.$asyncValidators, function(v, name) {
28251 setValidity(name, null);
28252 });
28253 }
28254 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
28255 setValidity(errorKey, parserValid);
28256 return parserValid;
28257 }
28258 return true;
28259 }
28260
28261 function processSyncValidators() {
28262 var syncValidatorsValid = true;

Callers 1

angular.jsFile · 0.70

Calls 3

isUndefinedFunction · 0.70
setValidityFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected