()
| 28259 | } |
| 28260 | |
| 28261 | function processSyncValidators() { |
| 28262 | var syncValidatorsValid = true; |
| 28263 | forEach(ctrl.$validators, function(validator, name) { |
| 28264 | var result = validator(modelValue, viewValue); |
| 28265 | syncValidatorsValid = syncValidatorsValid && result; |
| 28266 | setValidity(name, result); |
| 28267 | }); |
| 28268 | if (!syncValidatorsValid) { |
| 28269 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 28270 | setValidity(name, null); |
| 28271 | }); |
| 28272 | return false; |
| 28273 | } |
| 28274 | return true; |
| 28275 | } |
| 28276 | |
| 28277 | function processAsyncValidators() { |
| 28278 | var validatorPromises = []; |
no test coverage detected