(scope, element, attr, ctrl, $sniffer, $browser)
| 21964 | } |
| 21965 | |
| 21966 | function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
| 21967 | // Note: no badInputChecker here by purpose as `url` is only a validation |
| 21968 | // in browsers, i.e. we can always read out input.value even if it is not valid! |
| 21969 | baseInputType(scope, element, attr, ctrl, $sniffer, $browser); |
| 21970 | stringBasedInputType(ctrl); |
| 21971 | |
| 21972 | ctrl.$$parserName = 'email'; |
| 21973 | ctrl.$validators.email = function(modelValue, viewValue) { |
| 21974 | var value = modelValue || viewValue; |
| 21975 | return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value); |
| 21976 | }; |
| 21977 | } |
| 21978 | |
| 21979 | function radioInputType(scope, element, attr, ctrl) { |
| 21980 | // make the name unique, if not defined |
nothing calls this directly
no test coverage detected