Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/core/EventDispatcher.js>EventDispatcher#hasEventListener

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method EventDispatcher.prototype.hasEventListener
import { EventDispatcher } from "https://deno.land/x/threejs_4_deno@v121/src/core/EventDispatcher.js";

Checks if listener is added to an event type.

Parameters

type: string

The type of event to listen to.

listener: (event: Event) => void

The function that gets called when the event is fired.

Returns

boolean