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

Function processParseErrors

lib/test/angular/1.8.0/angular.js:30713–30733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30711 processAsyncValidators();
30712
30713 function processParseErrors() {
30714 var errorKey = that.$$parserName;
30715
30716 if (isUndefined(that.$$parserValid)) {
30717 setValidity(errorKey, null);
30718 } else {
30719 if (!that.$$parserValid) {
30720 forEach(that.$validators, function(v, name) {
30721 setValidity(name, null);
30722 });
30723 forEach(that.$asyncValidators, function(v, name) {
30724 setValidity(name, null);
30725 });
30726 }
30727
30728 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
30729 setValidity(errorKey, that.$$parserValid);
30730 return that.$$parserValid;
30731 }
30732 return true;
30733 }
30734
30735 function processSyncValidators() {
30736 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