Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/event_target.ts>EventTarget

A modern runtime for JavaScript and TypeScript.
Go to Latest
class EventTarget
implements [domTypes.EventTarget]
import { EventTarget } from "https://deno.land/x/deno@v0.28.0/cli/js/event_target.ts";

Properties

private
[eventTargetAssignedSlot]: boolean
private
[eventTargetHasActivationBehavior]: boolean
[domTypes.eventTargetHost]: domTypes.EventTarget | null
[domTypes.eventTargetListeners]: [type in string]: domTypes.EventListener[]
[domTypes.eventTargetMode]: string
[domTypes.eventTargetNodeType]: domTypes.NodeType
readonly
[Symbol.toStringTag]: string

Methods

addEventListener(
type: string,
callback: (event: domTypes.Event) => void | null,
options?: domTypes.AddEventListenerOptions | boolean,
): void
dispatchEvent(event: domTypes.Event): boolean
removeEventListener(
type: string,
callback: (event: domTypes.Event) => void | null,
options?: domTypes.EventListenerOptions | boolean,
): void