Skip to content

Commit

Permalink
Fix readme example
Browse files Browse the repository at this point in the history
Closes #
  • Loading branch information
fregante authored Nov 18, 2022
1 parent 9289a12 commit e412983
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ delegate(document.body, '.btn', 'click', event => {

### Remove event delegation

```js
const controller = delegate(document.body, '.btn', 'click', event => {
console.log(event.delegateTarget);
});

controller.abort();
```

```js
const controller = new AbortController();
delegate(document.body, '.btn', 'click', event => {
Expand Down

0 comments on commit e412983

Please sign in to comment.