EventHandlersStore

event-emitter.EventHandlersStore

constructor

new EventHandlersStore(): EventHandlersStore

Returns

EventHandlersStore

get

get(event, namespace): void | EventHandlerBlock[]

Parameters

Name Type
event string
namespace string

Returns

void | EventHandlerBlock[]

Defined in

src/core/event-emitter/store.ts#24


indexOf

indexOf(event, namespace, originalCallback): number | false

Parameters

Name Type
event string
namespace string
originalCallback CallbackFunction<any>

Returns

number | false

Defined in

src/core/event-emitter/store.ts#32


namespaces

namespaces(withoutDefault?): string[]

Parameters

Name Type Default value
withoutDefault boolean false

Returns

string[]

Defined in

src/core/event-emitter/store.ts#50


events

events(namespace): string[]

Parameters

Name Type
namespace string

Returns

string[]

Defined in

src/core/event-emitter/store.ts#55


set

set(event, namespace, data, onTop?): void

Parameters

Name Type Default value
event string undefined
namespace string undefined
data EventHandlerBlock undefined
onTop boolean false

Returns

void

Defined in

src/core/event-emitter/store.ts#60


clear

clear(): void

Returns

void

Defined in

src/core/event-emitter/store.ts#83


clearEvents

clearEvents(namespace, event): void

Parameters

Name Type
namespace string
event string

Returns

void

Defined in

src/core/event-emitter/store.ts#87


isEmpty

isEmpty(): boolean

Returns

boolean

Defined in

jodit/src/core/event-emitter/store.ts:99