UNPKG

carbon-form

Version:

Forms to be used with the CarbonJS Framework or standalone

20 lines (13 loc) 381 B
/** * @Author: Amir Ahmetovic <choxnox> * @License: MIT */ var Text = require("./text"); var util = require("util"); var Validate = require("carbon-validate"); function EmailAddress(name, options) { Text.call(this, name, options); this.addValidator(new Validate.EmailAddress(options)); } util.inherits(EmailAddress, Text); module.exports = exports = EmailAddress;