Packagecom.jacksondunstan.signals
Classpublic class FunctionSlot0
ImplementsSlot0

A function slot is a slot that, when called by a signal, calls a given function. While this is much slower than implementing the slot interface directly, this class provides a convenient way to use signals with functions other than the slot callback.



Public Methods
 MethodDefined by
  
FunctionSlot0(func:Function)
Make the slot.
FunctionSlot0
  
onSignal0():void
Called by the signal when it dispatches.
FunctionSlot0
Constructor detail
FunctionSlot0()constructor
public function FunctionSlot0(func:Function)

Make the slot.

Parameters
func:Function — Function to call when called by the signal. This will not be called if the function is null. Calling this function will result in an Error being thrown if it requires any arguments at all.
Method detail
onSignal0()method
public function onSignal0():void

Called by the signal when it dispatches. Calls the function given to the constructor if the constructor was given a non-null function. Calling the function given to the constructor will result in an Error being thrown if it requires any arguments at all.