An open API service indexing awesome lists of open source software.

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

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