Element event binding component.
Installation$ component install component/event
Example
var events = require('event'); var a = document.querySelector('a'); function onclick(e) { e.preventDefault(); console.log(e.target); events.unbind(a, 'click', onclick); } events.bind(a, 'click', onclick);API .bind(el, type, callback, [capture])
Bind to el
's event type
with callback
, returns the callback
passed.
Unbind el
's event type
callback
, returns the callback
passed.
MIT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4