()
| 24910 | } |
| 24911 | |
| 24912 | function processSyncValidators() { |
| 24913 | var syncValidatorsValid = true; |
| 24914 | forEach(ctrl.$validators, function(validator, name) { |
| 24915 | var result = validator(modelValue, viewValue); |
| 24916 | syncValidatorsValid = syncValidatorsValid && result; |
| 24917 | setValidity(name, result); |
| 24918 | }); |
| 24919 | if (!syncValidatorsValid) { |
| 24920 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 24921 | setValidity(name, null); |
| 24922 | }); |
| 24923 | return false; |
| 24924 | } |
| 24925 | return true; |
| 24926 | } |
| 24927 | |
| 24928 | function processAsyncValidators() { |
| 24929 | var validatorPromises = []; |
no test coverage detected