Skip to content

Class: Eventer

Hierarchy

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Eventer(): Eventer

Returns

Eventer

Properties

innerId

Readonly innerId: number

Implementation of

IEventer.innerId

Defined in

leafer/packages/event/src/Eventer.ts:9


__captureMap

Optional __captureMap: IEventListenerMap

Implementation of

IEventer.__captureMap

Defined in

leafer/packages/event/src/Eventer.ts:11


__bubbleMap

Optional __bubbleMap: IEventListenerMap

Implementation of

IEventer.__bubbleMap

Defined in

leafer/packages/event/src/Eventer.ts:13


syncEventer

Optional syncEventer: IEventer

Implementation of

IEventer.syncEventer

Defined in

leafer/packages/event/src/Eventer.ts:15

Accessors

event

set event(map): void

Parameters

NameType
mapIEventMap

Returns

void

Implementation of

IEventer.event

Defined in

leafer/packages/event/src/Eventer.ts:17

Methods

on

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

Parameters

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

Returns

void

Implementation of

IEventer.on

Defined in

leafer/packages/event/src/Eventer.ts:20


off

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

Parameters

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

Returns

void

Implementation of

IEventer.off

Defined in

leafer/packages/event/src/Eventer.ts:57


on_

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

Parameters

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

Returns

IEventListenerId

Implementation of

IEventer.on_

Defined in

leafer/packages/event/src/Eventer.ts:100


off_

off_(id): void

Parameters

NameType
idIEventListenerId | IEventListenerId[]

Returns

void

Implementation of

IEventer.off_

Defined in

leafer/packages/event/src/Eventer.ts:106


once

once(type, listener, capture?): void

Parameters

NameType
typestring | string[]
listenerIFunction
capture?boolean

Returns

void

Implementation of

IEventer.once

Defined in

leafer/packages/event/src/Eventer.ts:113


emit

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

Parameters

NameType
typestring
event?IObject | IEvent
capture?boolean

Returns

void

Implementation of

IEventer.emit

Defined in

leafer/packages/event/src/Eventer.ts:117


emitEvent

emitEvent(event, capture?): void

Parameters

NameType
eventIEvent
capture?boolean

Returns

void

Implementation of

IEventer.emitEvent

Defined in

leafer/packages/event/src/Eventer.ts:138


hasEvent

hasEvent(type, capture?): boolean

Parameters

NameType
typestring
capture?boolean

Returns

boolean

Implementation of

IEventer.hasEvent

Defined in

leafer/packages/event/src/Eventer.ts:143


destroy

destroy(): void

Returns

void

Implementation of

IEventer.destroy

Defined in

leafer/packages/event/src/Eventer.ts:151

Released under the MIT License.