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

Function processParseErrors

lib/test/angular/1.4.3/angular.js:24892–24910  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24890 processAsyncValidators();
24891
24892 function processParseErrors() {
24893 var errorKey = ctrl.$$parserName || 'parse';
24894 if (parserValid === undefined) {
24895 setValidity(errorKey, null);
24896 } else {
24897 if (!parserValid) {
24898 forEach(ctrl.$validators, function(v, name) {
24899 setValidity(name, null);
24900 });
24901 forEach(ctrl.$asyncValidators, function(v, name) {
24902 setValidity(name, null);
24903 });
24904 }
24905 // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
24906 setValidity(errorKey, parserValid);
24907 return parserValid;
24908 }
24909 return true;
24910 }
24911
24912 function processSyncValidators() {
24913 var syncValidatorsValid = true;

Callers 1

angular.jsFile · 0.70

Calls 2

setValidityFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected