(value)
| 16906 | if (isObject(validity)) { |
| 16907 | ctrl.$$hasNativeValidators = true; |
| 16908 | var validator = function(value) { |
| 16909 | // Don't overwrite previous validation, don't consider valueMissing to apply (ng-required can |
| 16910 | // perform the required validation) |
| 16911 | if (!ctrl.$error[validatorName] && |
| 16912 | !testFlags(validity, ignoreFlags) && |
| 16913 | testFlags(validity, badFlags)) { |
| 16914 | ctrl.$setValidity(validatorName, false); |
| 16915 | return; |
| 16916 | } |
| 16917 | return value; |
| 16918 | }; |
| 16919 | ctrl.$parsers.push(validator); |
| 16920 | } |
| 16921 | } |
no test coverage detected