()
| 23306 | } |
| 23307 | |
| 23308 | function processSyncValidators() { |
| 23309 | var syncValidatorsValid = true; |
| 23310 | forEach(ctrl.$validators, function(validator, name) { |
| 23311 | var result = validator(modelValue, viewValue); |
| 23312 | syncValidatorsValid = syncValidatorsValid && result; |
| 23313 | setValidity(name, result); |
| 23314 | }); |
| 23315 | if (!syncValidatorsValid) { |
| 23316 | forEach(ctrl.$asyncValidators, function(v, name) { |
| 23317 | setValidity(name, null); |
| 23318 | }); |
| 23319 | return false; |
| 23320 | } |
| 23321 | return true; |
| 23322 | } |
| 23323 | |
| 23324 | function processAsyncValidators() { |
| 23325 | var validatorPromises = []; |
no test coverage detected