Skip to main content
Module

x/deno/js/event_target.ts>EventListener

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

Constructors

new
EventListener(callback: (event: domTypes.Event) => void | null, options: boolean | domTypes.AddEventListenerOptions)

Properties

private
_callback: (event: domTypes.Event) => void | null
private
_options: boolean | domTypes.AddEventListenerOptions
allEvents: domTypes.Event[]
atEvents: domTypes.Event[]
bubbledEvents: domTypes.Event[]
readonly
callback: (event: domTypes.Event) => void | null
capturedEvents: domTypes.Event[]
readonly
options: domTypes.AddEventListenerOptions | boolean

Methods

handleEvent(event: domTypes.Event): void