dienianindya 2ce56fd9e5 Update 31/01 | il y a 1 an | |
---|---|---|
.. | ||
tests | il y a 1 an | |
LICENSE | il y a 1 an | |
README.md | il y a 1 an | |
index.d.ts | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
A minimal event emitter.
new EventEmitter()
Constructs a new event emitter instance.
EventEmitter#on(evt: string
, fn: function
, [ctx: Object
]): EventEmitter
Registers an event listener.
EventEmitter#off([evt: string
], [fn: function
]): EventEmitter
Removes an event listener or any matching listeners if arguments are omitted.
EventEmitter#emit(evt: string
, …args: *
): EventEmitter
Emits an event by calling its listeners with the specified arguments.
License: BSD 3-Clause License