()
| 25751 | } |
| 25752 | |
| 25753 | function processSyncValidators() { |
| 25754 | var syncValidatorsValid = true; |
| 25755 | forEach(ctrl.$validators, function(validator, name) { |
| 25756 | var result = validator(modelValue, viewValue); |
| 25757 | syncValidatorsValid = syncValidatorsValid && result; |
| 25758 | setValidity(name, result); |
| 25759 | }); |
| 25760 | if (!syncValidatorsValid) { |
| 25761 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 25762 | setValidity(name, null); |
| 25763 | }); |
| 25764 | return false; |
| 25765 | } |
| 25766 | return true; |
| 25767 | } |
| 25768 | |
| 25769 | function processAsyncValidators() { |
| 25770 | var validatorPromises = []; |
no test coverage detected