PHPMailer6
auswertung
bootstrap
data-table
dist
node_modules
@popperjs
after-transition
bootstrap
bootstrap-icons
component-emitter
component-query
css-ease
css-emitter-component
event-component
test
.npmignore
History.md
Makefile
Readme.md
component.json
index.js
package.json
has-transitions
has-translate3d
move-js
scrolling-tabs-bootstrap-5
transform-property
.package-lock.json
index.html
classes
config
controller
dashboard
datepicker
jquery
js
language
lib
media
selfregistration
sql
survey
templates
test
tinymce
.gitignore
Hinweise_zu_php8.txt
config.inc.php
todo.txt
608 B
608 B
event
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, type, callback, [capture])
Unbind el
's event type
callback
,
returns the callback
passed.
License
MIT