Skip to content

Class: Event

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Event(type, target?): Event

Parameters

NameType
typestring
target?IEventTarget

Returns

Event

Defined in

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

Properties

origin

Readonly origin: IObject

Implementation of

IEvent.origin

Defined in

leafer/packages/event/src/Event.ts:7


type

Readonly type: string

Implementation of

IEvent.type

Defined in

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


target

Readonly target: IEventTarget

Implementation of

IEvent.target

Defined in

leafer/packages/event/src/Event.ts:10


current

Readonly current: IEventTarget

Implementation of

IEvent.current

Defined in

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


bubbles

Readonly bubbles: boolean = false

Implementation of

IEvent.bubbles

Defined in

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


phase

Readonly phase: number

Implementation of

IEvent.phase

Defined in

leafer/packages/event/src/Event.ts:14


isStopDefault

isStopDefault: boolean

Implementation of

IEvent.isStopDefault

Defined in

leafer/packages/event/src/Event.ts:16


isStop

isStop: boolean

Implementation of

IEvent.isStop

Defined in

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


isStopNow

isStopNow: boolean

Implementation of

IEvent.isStopNow

Defined in

leafer/packages/event/src/Event.ts:18

Methods

stopDefault

stopDefault(): void

Returns

void

Implementation of

IEvent.stopDefault

Defined in

leafer/packages/event/src/Event.ts:25


stopNow

stopNow(): void

Returns

void

Implementation of

IEvent.stopNow

Defined in

leafer/packages/event/src/Event.ts:30


stop

stop(): void

Returns

void

Implementation of

IEvent.stop

Defined in

leafer/packages/event/src/Event.ts:36

Released under the MIT License.