1.0.1 • Published 6 years ago

core.plugin.emitter v1.0.1

Weekly downloads
5
License
ISC
Repository
-
Last release
6 years ago

core.plugin.emitter

A tiny event emitter.

extends core with:

  • events - { object } - holding listeners for events.
  • on - { function(name, listener) } - listen for an event.
  • off - { function(name, listener) } - stop listening for an event.
  • emit - { function(name, ...args) } - emit an event by name. listeners will be called with all args.
  • Emitter - { function } - create a new emitter.
1.0.1

6 years ago

1.0.0

6 years ago

0.0.9

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago