MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / emailInputType

Function emailInputType

test/fixtures/foo.js:17186–17195  ·  view source on GitHub ↗
(scope, element, attr, ctrl, $sniffer, $browser)

Source from the content-addressed store, hash-verified

17184}
17185
17186function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
17187 textInputType(scope, element, attr, ctrl, $sniffer, $browser);
17188
17189 var emailValidator = function(value) {
17190 return validate(ctrl, 'email', ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value), value);
17191 };
17192
17193 ctrl.$formatters.push(emailValidator);
17194 ctrl.$parsers.push(emailValidator);
17195}
17196
17197function radioInputType(scope, element, attr, ctrl) {
17198 // make the name unique, if not defined

Callers

nothing calls this directly

Calls 1

textInputTypeFunction · 0.85

Tested by

no test coverage detected