A more versatile way of adding & removing event listeners
A more versatile way of adding & removing event listeners.
You can get it on npm.
npm install good-listener --save
Or bower, too.
bower install good-listener --save
If you're not into package management, just download a ZIP file.
var listen = ;
By passing a string selector (see full demo).
Or by passing a HTML element (see full demo).
var logo = document;;
Or by passing a list of HTML elements (see full demo).
var anchors = document;;
By calling the
destroy function that returned from previous operation (see full demo).
var listener =;listener;
|Latest ✔||Latest ✔||IE 9+ ✔||Latest ✔||Latest ✔|
MIT License © Zeno Rocha