1.2.3 • Published 3 years ago

birch-event-emitter v1.2.3

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

birch-event-emitter

A simpler event emitter for the browser

Features include:

  • Event subscriptions return a Disposable object with dispose() method to unsubscribe from event.
  • Group event subscriptions using DisposablesComposite and dispose them all with one call, i.e DisposableComposite#dispose()
  • Listeners voice matters!! You can now dispatch an event using EventEmitter#emithWithReturn where each listener's return value can be accessed from returned array.

Motivation

Forked from Notificar

  • Included as a core dependency of react-birch directly in the mono repository
  • Replaces functionality used in some of the original tiny-emitter in the react-aspen dependencies to avoid unnecessary inclusion of duplicate functionality implemented in different ways
  • Transpiled to typescript
  • Standard to standard verbs on, emit instead of add, dispatch

License

MIT

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.1

5 years ago