attr-ev
attribute-registered dom event listener
example
click me
var aev = 'click' {console;};var elems = document;for var i = 0; i < elemslength; i++ ;
compile with browserify:
browserify browser.js > bundle.js
then open index.html
in a browser.
You can also use this module with attractor:
var scope ={ console };var attractor = ;var attr =;attr;
methods
var aev =
var reg = aev(name, cb)
Return a register function reg()
for the event named by the string name
and
the event handler cb(ev)
.
reg(elem)
Register the event handler for the dom element elem
.
install
With npm do:
npm install attr-ev
license
MIT