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

Function processParseErrors

test/angular/1.4/angular.js:25733–25751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25731 processAsyncValidators();
25732
25733 function processParseErrors() {
25734 var errorKey = ctrl.$$parserName || 'parse';
25735 if (isUndefined(parserValid)) {
25736 setValidity(errorKey, null);
25737 } else {
25738 if (!parserValid) {
25739 forEach(ctrl.$validators, function(v, name) {
25740 setValidity(name, null);
25741 });
25742 forEach(ctrl.$asyncValidators, function(v, name) {
25743 setValidity(name, null);
25744 });
25745 }
25746 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
25747 setValidity(errorKey, parserValid);
25748 return parserValid;
25749 }
25750 return true;
25751 }
25752
25753 function processSyncValidators() {
25754 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