Package Exports
- @protobufjs/eventemitter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@protobufjs/eventemitter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@protobufjs/eventemitter
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