Mixin: PhSimEventTarget

PhSim. PhSimEventTarget

Methods


<static> callEventClass(event)

Parameters:
Name Type Description
event PhSim.Events.PhSimEvent

Event Object

Source:

<static> off(eventStr, call)

Parameters:
Name Type Description
eventStr String
call PhSimEventCall
Source:

<static> on(eventStr, call [, options])

Used to add events to a PhSim simulation

Parameters:
Name Type Argument Default Description
eventStr string

String representing the event.

call PhSimEventCall

Function to run when event is executed.

options object <optional>
{}

Event Listener Options.

Properties
Name Type Argument Description
once boolean <optional>

If true, the function is executed only once.

slEvent boolean <optional>

If true, the event will be removed when the simulation changes

Source: