()
| 23286 | processAsyncValidators(); |
| 23287 | |
| 23288 | function processParseErrors() { |
| 23289 | var errorKey = ctrl.$$parserName || 'parse'; |
| 23290 | if (parserValid === undefined) { |
| 23291 | setValidity(errorKey, null); |
| 23292 | } else { |
| 23293 | if (!parserValid) { |
| 23294 | forEach(ctrl.$validators, function(v, name) { |
| 23295 | setValidity(name, null); |
| 23296 | }); |
| 23297 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 23298 | setValidity(name, null); |
| 23299 | }); |
| 23300 | } |
| 23301 | // Set the parse error last, to prevent unsetting it, should a $validators key == parserName |
| 23302 | setValidity(errorKey, parserValid); |
| 23303 | return parserValid; |
| 23304 | } |
| 23305 | return true; |
| 23306 | } |
| 23307 | |
| 23308 | function processSyncValidators() { |
| 23309 | var syncValidatorsValid = true; |
no test coverage detected