Search
Preparing search index...
The search index is not available
@fujia/hammer
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@fujia/hammer
EventBus
Class EventBus
Hierarchy
EventBus
Index
Constructors
constructor
Properties
callbacks
Methods
emit
off
on
Constructors
constructor
new
Event
Bus
(
)
:
EventBus
Returns
EventBus
Properties
callbacks
callbacks
:
Record
<
string
,
any
[]
>
= {}
Methods
emit
emit
<
T
>
(
type
:
string
, data
:
T
)
:
void
Type parameters
T
Parameters
type:
string
data:
T
Returns
void
off
off
(
eventName
:
string
)
:
void
Parameters
eventName:
string
Returns
void
on
on
(
type
:
string
, cb
:
CallableFunction
)
:
void
Parameters
type:
string
cb:
CallableFunction
Returns
void
Exports
Event
Bus
constructor
callbacks
emit
off
on
Generated using
TypeDoc