Module: util/EventHelpers¶
Functions¶
publish¶
publish(eventName
, data
): void
Low level method wrapper around document.dispatchEvent specifically for handling EvamEvents
Parameters¶
Name |
Type |
Description |
---|---|---|
|
EvamEvent |
|
|
|
data to be passed to the callback |
Returns¶
void
subscribe¶
subscribe(eventName
, listener
): void
Low level method wrapper around document.addEventListener specifically for handling EvamEvents
Parameters¶
Name |
Type |
Description |
---|---|---|
|
EvamEvent |
|
|
|
callback |
Returns¶
void
unsubscribe¶
unsubscribe(eventName
, listener
): void
Low level method wrapper around document.removeEventListener specifically for handling EvamEvents
Parameters¶
Name |
Type |
Description |
---|---|---|
|
EvamEvent |
|
|
|
callback |
Returns¶
void