()
| 20680 | } |
| 20681 | |
| 20682 | function processSyncValidators() { |
| 20683 | var syncValidatorsValid = true; |
| 20684 | forEach(ctrl.$validators, function(validator, name) { |
| 20685 | var result = validator(modelValue, viewValue); |
| 20686 | syncValidatorsValid = syncValidatorsValid && result; |
| 20687 | setValidity(name, result); |
| 20688 | }); |
| 20689 | if (!syncValidatorsValid) { |
| 20690 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 20691 | setValidity(name, null); |
| 20692 | }); |
| 20693 | return false; |
| 20694 | } |
| 20695 | return true; |
| 20696 | } |
| 20697 | |
| 20698 | function processAsyncValidators() { |
| 20699 | var validatorPromises = []; |
no test coverage detected