https://github.com/npm-dom/delegate-dom
Event delegation library
https://github.com/npm-dom/delegate-dom
Last synced: about 1 month ago
JSON representation
Event delegation library
- Host: GitHub
- URL: https://github.com/npm-dom/delegate-dom
- Owner: npm-dom
- Fork: true (component/delegate)
- Created: 2013-09-14T07:58:23.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-09T03:45:33.000Z (over 9 years ago)
- Last Synced: 2025-10-15T22:33:52.474Z (2 months ago)
- Language: JavaScript
- Homepage: http://npm.im/delegate-dom
- Size: 10.7 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome_frontend_development_resources - delegate-dom - Event delegation library. (DOM / React Components)
- awesome - delegate-dom - Event delegation library. (DOM / React Components)
README
# delegate-dom
Low-level event delegation library.
## Install
$ npm install delegate-dom
## Example
```js
var delegate = require('delegate-dom')
delegate.on(document.body, 'ul li a', 'click', function self (e) {
delegate.off(document.body, 'click', self);
})
```
## License
MIT