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

Function processParseErrors

lib/test/angular/1.5.0/angular.js:26189–26207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26187 processAsyncValidators();
26188
26189 function processParseErrors() {
26190 var errorKey = ctrl.$$parserName || 'parse';
26191 if (isUndefined(parserValid)) {
26192 setValidity(errorKey, null);
26193 } else {
26194 if (!parserValid) {
26195 forEach(ctrl.$validators, function(v, name) {
26196 setValidity(name, null);
26197 });
26198 forEach(ctrl.$asyncValidators, function(v, name) {
26199 setValidity(name, null);
26200 });
26201 }
26202 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
26203 setValidity(errorKey, parserValid);
26204 return parserValid;
26205 }
26206 return true;
26207 }
26208
26209 function processSyncValidators() {
26210 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