Skip to main content
Module

x/drollup/deps.ts>EventEmitter#on

Next-generation ES module bundler ported for Deno
Latest
method EventEmitter.prototype.on
import { EventEmitter } from "https://deno.land/x/drollup@2.58.0%2B0.20.0/deps.ts";

Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

Parameters

eventName: string | symbol
listener: GenericFunction | WrappedFunction