(value)
| 11701 | textInputType(scope, element, attr, ctrl, $sniffer, $browser); |
| 11702 | |
| 11703 | var emailValidator = function(value) { |
| 11704 | if (isEmpty(value) || EMAIL_REGEXP.test(value)) { |
| 11705 | ctrl.$setValidity('email', true); |
| 11706 | return value; |
| 11707 | } else { |
| 11708 | ctrl.$setValidity('email', false); |
| 11709 | return undefined; |
| 11710 | } |
| 11711 | }; |
| 11712 | |
| 11713 | ctrl.$formatters.push(emailValidator); |
| 11714 | ctrl.$parsers.push(emailValidator); |