Skip to content

Interface: IEventTarget

Hierarchy

Table of contents

Properties

Methods

Properties

innerId

Readonly innerId: number

Inherited from

IEventer.innerId

Defined in

leafer/packages/interface/src/event/IEventer.ts:39


__captureMap

Optional __captureMap: IEventListenerMap

Inherited from

IEventer.__captureMap

Defined in

leafer/packages/interface/src/event/IEventer.ts:40


__bubbleMap

Optional __bubbleMap: IEventListenerMap

Inherited from

IEventer.__bubbleMap

Defined in

leafer/packages/interface/src/event/IEventer.ts:41


syncEventer

Optional syncEventer: IEventer

Inherited from

IEventer.syncEventer

Defined in

leafer/packages/interface/src/event/IEventer.ts:42


event

Optional event: IEventMap

Inherited from

IEventer.event

Defined in

leafer/packages/interface/src/event/IEventer.ts:43

Methods

destroyEventer

destroyEventer(): void

Returns

void

Inherited from

IEventer.destroyEventer

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:18


on

on(type, listener?, options?): void

Parameters

NameType
typestring | string[] | IEventMap
listener?IFunction
options?IEventOption

Returns

void

Inherited from

IEventer.on

Defined in

leafer/packages/interface/src/event/IEventer.ts:45


off

off(type?, listener?, options?): void

Parameters

NameType
type?string | string[]
listener?IFunction
options?IEventOption

Returns

void

Inherited from

IEventer.off

Defined in

leafer/packages/interface/src/event/IEventer.ts:46


on_

on_(type, listener, bind?, options?): IEventListenerId

Parameters

NameType
typestring | string[]
listenerIFunction
bind?IObject
options?IEventOption

Returns

IEventListenerId

Inherited from

IEventer.on_

Defined in

leafer/packages/interface/src/event/IEventer.ts:47


off_

off_(id): void

Parameters

NameType
idIEventListenerId | IEventListenerId[]

Returns

void

Inherited from

IEventer.off_

Defined in

leafer/packages/interface/src/event/IEventer.ts:48


once

once(type, listener): void

Parameters

NameType
typestring | string[]
listenerIFunction

Returns

void

Inherited from

IEventer.once

Defined in

leafer/packages/interface/src/event/IEventer.ts:49


emit

emit(type, event?, capture?): void

Parameters

NameType
typestring
event?IObject | IEvent
capture?boolean

Returns

void

Inherited from

IEventer.emit

Defined in

leafer/packages/interface/src/event/IEventer.ts:50


emitEvent

emitEvent(event?, capture?): void

Parameters

NameType
event?IEvent
capture?boolean

Returns

void

Inherited from

IEventer.emitEvent

Defined in

leafer/packages/interface/src/event/IEventer.ts:51


hasEvent

hasEvent(type, capture?): boolean

Parameters

NameType
typestring
capture?boolean

Returns

boolean

Inherited from

IEventer.hasEvent

Defined in

leafer/packages/interface/src/event/IEventer.ts:52


destroy

destroy(): void

Returns

void

Inherited from

IEventer.destroy

Defined in

leafer/packages/interface/src/event/IEventer.ts:54

Released under the MIT License.