()
| 26207 | } |
| 26208 | |
| 26209 | function processSyncValidators() { |
| 26210 | var syncValidatorsValid = true; |
| 26211 | forEach(ctrl.$validators, function(validator, name) { |
| 26212 | var result = validator(modelValue, viewValue); |
| 26213 | syncValidatorsValid = syncValidatorsValid && result; |
| 26214 | setValidity(name, result); |
| 26215 | }); |
| 26216 | if (!syncValidatorsValid) { |
| 26217 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 26218 | setValidity(name, null); |
| 26219 | }); |
| 26220 | return false; |
| 26221 | } |
| 26222 | return true; |
| 26223 | } |
| 26224 | |
| 26225 | function processAsyncValidators() { |
| 26226 | var validatorPromises = []; |
no test coverage detected