Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Nov 11, 2019
1 parent f4aa57b commit 8db7c34
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ event.off('connected', listener);
// remove all listeners for an event
event.off('connected');

// detach multiple event listeners
event.detachEvents(['connecting', 'connected']);

// detach all event listeners
event.detachAll();
// unbind all event listeners
event.unbindAll();
```

### API
Expand All @@ -78,8 +75,7 @@ const event = new Capillaries();
- event.on
- event.off
- event.emit
- event.detachEvents
- event.detachAll
- event.unbindAll

[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/lang/en/
Expand Down

0 comments on commit 8db7c34

Please sign in to comment.