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

Function processParseErrors

test/angular/1.6/angular.js:29644–29662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29642 processAsyncValidators();
29643
29644 function processParseErrors() {
29645 var errorKey = that.$$parserName || 'parse';
29646 if (isUndefined(that.$$parserValid)) {
29647 setValidity(errorKey, null);
29648 } else {
29649 if (!that.$$parserValid) {
29650 forEach(that.$validators, function(v, name) {
29651 setValidity(name, null);
29652 });
29653 forEach(that.$asyncValidators, function(v, name) {
29654 setValidity(name, null);
29655 });
29656 }
29657 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
29658 setValidity(errorKey, that.$$parserValid);
29659 return that.$$parserValid;
29660 }
29661 return true;
29662 }
29663
29664 function processSyncValidators() {
29665 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