Lurch Deductive Engine

Class

EventTarget

new EventTarget()

The function below extends the built-in EventTarget class with new functionality.

Source

Methods

emit(type, details)

Extend the EventTarget prototype with a convenience method for emitting new events. Mimics the function of the same name from node.js, but here in the browser.

Parameters

  • type string

    The type of event being emitted, as a string name

  • details object

    Any additional fields to copy into the Event object

Source