Module

x/ash/src/EventEmitter.ts>default#on

A stylish web framework for Deno!
Latest
method default.prototype.on
import { default } from "https://dotland.deno.dev/x/ash@1.3.6/src/EventEmitter.ts";

Listens for an event.

Parameters

name: string

The event to listen for.

callback: Function

A callback that will be called when the event is emitted.