Skip to content

Class: WatchEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WatchEvent(type, data?): WatchEvent

Parameters

NameType
typestring
data?IWatchEventData

Returns

WatchEvent

Overrides

Event.constructor

Defined in

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

Properties

origin

Readonly origin: IObject

Implementation of

IWatchEvent.origin

Inherited from

Event.origin

Defined in

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


type

Readonly type: string

Implementation of

IWatchEvent.type

Inherited from

Event.type

Defined in

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


target

Readonly target: IEventTarget

Implementation of

IWatchEvent.target

Inherited from

Event.target

Defined in

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


current

Readonly current: IEventTarget

Implementation of

IWatchEvent.current

Inherited from

Event.current

Defined in

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


bubbles

Readonly bubbles: boolean = false

Implementation of

IWatchEvent.bubbles

Inherited from

Event.bubbles

Defined in

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


phase

Readonly phase: number

Implementation of

IWatchEvent.phase

Inherited from

Event.phase

Defined in

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


isStopDefault

isStopDefault: boolean

Implementation of

IWatchEvent.isStopDefault

Inherited from

Event.isStopDefault

Defined in

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


isStop

isStop: boolean

Implementation of

IWatchEvent.isStop

Inherited from

Event.isStop

Defined in

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


isStopNow

isStopNow: boolean

Implementation of

IWatchEvent.isStopNow

Inherited from

Event.isStopNow

Defined in

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


REQUEST

Static REQUEST: string = 'watch.request'

Defined in

leafer/packages/event/src/WatchEvent.ts:8


DATA

Static DATA: string = 'watch.data'

Defined in

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


data

Readonly data: IWatchEventData

Implementation of

IWatchEvent.data

Defined in

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

Methods

stopDefault

stopDefault(): void

Returns

void

Implementation of

IWatchEvent.stopDefault

Inherited from

Event.stopDefault

Defined in

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


stopNow

stopNow(): void

Returns

void

Implementation of

IWatchEvent.stopNow

Inherited from

Event.stopNow

Defined in

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


stop

stop(): void

Returns

void

Implementation of

IWatchEvent.stop

Inherited from

Event.stop

Defined in

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

Released under the MIT License.