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

Function processParseErrors

test/angular/1.7/angular.js:30648–30668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30646 processAsyncValidators();
30647
30648 function processParseErrors() {
30649 var errorKey = that.$$parserName;
30650
30651 if (isUndefined(that.$$parserValid)) {
30652 setValidity(errorKey, null);
30653 } else {
30654 if (!that.$$parserValid) {
30655 forEach(that.$validators, function(v, name) {
30656 setValidity(name, null);
30657 });
30658 forEach(that.$asyncValidators, function(v, name) {
30659 setValidity(name, null);
30660 });
30661 }
30662
30663 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
30664 setValidity(errorKey, that.$$parserValid);
30665 return that.$$parserValid;
30666 }
30667 return true;
30668 }
30669
30670 function processSyncValidators() {
30671 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