https://github.com/pirxpilot/delegate
Bare-bones event delegation
https://github.com/pirxpilot/delegate
Last synced: over 1 year ago
JSON representation
Bare-bones event delegation
- Host: GitHub
- URL: https://github.com/pirxpilot/delegate
- Owner: pirxpilot
- Created: 2017-12-13T17:47:34.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-02-21T16:46:10.000Z (over 2 years ago)
- Last Synced: 2025-03-17T09:42:11.317Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]
# delegate
Bare-bones DOM event delegation for modern browsers. IE support requires [matches polyfill].
## Install
```sh
$ npm install --save @pirxpilot/delegate
```
## Usage
```js
var delegate = require('@pirxpilot/delegate');
```
## License
MIT © [Damian Krzeminski](https://pirxpilot.me)
[npm-image]: https://img.shields.io/npm/v/@pirxpilot/delegate
[npm-url]: https://npmjs.org/package/@pirxpilot/delegate
[build-url]: https://github.com/pirxpilot/delegate/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/delegate/check.yaml?branch=main
[deps-image]: https://img.shields.io/librariesio/release/npm/@pirxpilot/delegate
[deps-url]: https://libraries.io/npm/@pirxpilot%2Fdelegate
[matches polyfill]: https://github.com/Financial-Times/polyfill-service/tree/master/polyfills/Element/prototype/matches