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

Function processParseErrors

lib/test/angular/1.7.0/angular.js:29751–29771  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29749 processAsyncValidators();
29750
29751 function processParseErrors() {
29752 var errorKey = that.$$parserName;
29753
29754 if (isUndefined(that.$$parserValid)) {
29755 setValidity(errorKey, null);
29756 } else {
29757 if (!that.$$parserValid) {
29758 forEach(that.$validators, function(v, name) {
29759 setValidity(name, null);
29760 });
29761 forEach(that.$asyncValidators, function(v, name) {
29762 setValidity(name, null);
29763 });
29764 }
29765
29766 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
29767 setValidity(errorKey, that.$$parserValid);
29768 return that.$$parserValid;
29769 }
29770 return true;
29771 }
29772
29773 function processSyncValidators() {
29774 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