(value)
| 17151 | if (isObject(validity)) { |
| 17152 | ctrl.$$hasNativeValidators = true; |
| 17153 | var validator = function(value) { |
| 17154 | // Don't overwrite previous validation, don't consider valueMissing to apply (ng-required can |
| 17155 | // perform the required validation) |
| 17156 | if (!ctrl.$error[validatorName] && |
| 17157 | !testFlags(validity, ignoreFlags) && |
| 17158 | testFlags(validity, badFlags)) { |
| 17159 | ctrl.$setValidity(validatorName, false); |
| 17160 | return; |
| 17161 | } |
| 17162 | return value; |
| 17163 | }; |
| 17164 | ctrl.$parsers.push(validator); |
| 17165 | } |
| 17166 | } |
no test coverage detected