dom-events
DOM event binding and triggering
api
.on(element, name, fn [, useCapture])
Bind fn
to be called when name
is triggered on element
.
var eve = ; var div = document;eve;
.off(element, name, fn [, useCapture])
Remove fn
from being called when name
is triggered on element
var eve = ; var { console;}; var div = document;eve; // emit some stuff eve;
.once(element, name, fn [, useCapture])
Calls fn
the first time the event happens and unsubcribes immediately.
.emit(element, name [, opts])
Force emit name
on element
.
var eve = ; var div = document;eve; eve:
license
MIT