VUE_GabenParadise/node_modules/@protobufjs/eventemitter
Václav Španinger 452829f0e1 Initial Commit 2020-08-10 14:35:19 +02:00
..
tests Initial Commit 2020-08-10 14:35:19 +02:00
LICENSE Initial Commit 2020-08-10 14:35:19 +02:00
README.md Initial Commit 2020-08-10 14:35:19 +02:00
index.d.ts Initial Commit 2020-08-10 14:35:19 +02:00
index.js Initial Commit 2020-08-10 14:35:19 +02:00
package.json Initial Commit 2020-08-10 14:35:19 +02:00

README.md

@protobufjs/eventemitter

npm

A minimal event emitter.

API

  • 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