Module: util/EventHelpers

Functions

publish

publish(eventName, data): void

Low level method wrapper around document.dispatchEvent specifically for handling EvamEvents

Parameters

Name

Type

Description

eventName

EvamEvent

EvamEvent

data

any

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

eventName

EvamEvent

EvamEvent

listener

EventListenerOrEventListenerObject

callback

Returns

void


unsubscribe

unsubscribe(eventName, listener): void

Low level method wrapper around document.removeEventListener specifically for handling EvamEvents

Parameters

Name

Type

Description

eventName

EvamEvent

EvamEvent

listener

EventListenerOrEventListenerObject

callback

Returns

void