Class: EventExecutor

EventExecutor(runHandler)

Handles the execution of event handlers.

Constructor

new EventExecutor(runHandler)

Parameters:
Name Type Description
runHandler function

Function that executes the event logic.

Source:

Classes

EventExecutor

Members

runHandler :function

Type:
  • function
Source:

Methods

execute(source, eventopt, slotScopeopt) → {any}

Executes the event handler for a given source.

Parameters:
Name Type Attributes Default Description
source string

The source code or identifier for the event handler.

event Event | null <optional>
null

The event object, if any.

slotScope object | null <optional>
null

The slot scope context, if any.

Source:
Returns:

The result of the event handler execution.

Type
any

teardown()

Cleans up the run handler closure reference to prevent parent scope memory retention.

Source: