UNPKG

@incdevco/framework

Version:
22 lines (12 loc) 285 B
function Element(tag) { 'use strict'; this.binds = {}; this.tag = tag; } Element.prototype.bind = function (event, fn) { 'use strict'; this.binds[event] = this.binds[event] || []; this.binds[event].push(fn); return this; }; module.exports = Element;