(scope, element, attr, ctrl, $sniffer, $browser)
| 19868 | } |
| 19869 | |
| 19870 | function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
| 19871 | // Note: no badInputChecker here by purpose as `url` is only a validation |
| 19872 | // in browsers, i.e. we can always read out input.value even if it is not valid! |
| 19873 | baseInputType(scope, element, attr, ctrl, $sniffer, $browser); |
| 19874 | stringBasedInputType(ctrl); |
| 19875 | |
| 19876 | ctrl.$$parserName = 'email'; |
| 19877 | ctrl.$validators.email = function(modelValue, viewValue) { |
| 19878 | var value = modelValue || viewValue; |
| 19879 | return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value); |
| 19880 | }; |
| 19881 | } |
| 19882 | |
| 19883 | function radioInputType(scope, element, attr, ctrl) { |
| 19884 | // make the name unique, if not defined |
nothing calls this directly
no test coverage detected