Skip to main content

Class: EventTarget

Hierarchy

Constructors

constructor

new EventTarget()

Defined in

packages/core/src/eventtarget.ts:15

Methods

addEventListener

addEventListener(type, callback): void

Parameters

NameType
typestring
callbackEventListener

Returns

void

Defined in

packages/core/src/eventtarget.ts:19


removeEventListener

removeEventListener(type, callback): void

Parameters

NameType
typestring
callbackEventListener

Returns

void

Defined in

packages/core/src/eventtarget.ts:26


dispatchEvent

dispatchEvent(event): boolean

Parameters

NameType
eventEvent

Returns

boolean

Defined in

packages/core/src/eventtarget.ts:39