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

Function processParseErrors

lib/test/angular/1.6.7/angular.js:29134–29152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29132 processAsyncValidators();
29133
29134 function processParseErrors() {
29135 var errorKey = that.$$parserName || 'parse';
29136 if (isUndefined(that.$$parserValid)) {
29137 setValidity(errorKey, null);
29138 } else {
29139 if (!that.$$parserValid) {
29140 forEach(that.$validators, function(v, name) {
29141 setValidity(name, null);
29142 });
29143 forEach(that.$asyncValidators, function(v, name) {
29144 setValidity(name, null);
29145 });
29146 }
29147 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
29148 setValidity(errorKey, that.$$parserValid);
29149 return that.$$parserValid;
29150 }
29151 return true;
29152 }
29153
29154 function processSyncValidators() {
29155 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