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

x/ayonli_jsext/event.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/event.ts";

Functions for working with events.

Functions

Creates a CloseEvent instance based on the given options. If the CloseEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.

Creates a CustomEvent instance based on the given options. If the CustomEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.

Creates an ErrorEvent instance based on the given options. If the ErrorEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.

Creates a ProgressEvent instance based on the given options. If the ProgressEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.