dienianindya 65435fcb07 update sore | 1 vuosi sitten | |
---|---|---|
.. | ||
tests | 1 vuosi sitten | |
LICENSE | 1 vuosi sitten | |
README.md | 1 vuosi sitten | |
index.d.ts | 1 vuosi sitten | |
index.js | 1 vuosi sitten | |
package.json | 1 vuosi sitten |
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