Packagecom.jacksondunstan.signals
Classpublic class FunctionSlot1
ImplementsSlot1

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
  
FunctionSlot1(func:Function)
Make the slot.
FunctionSlot1
  
onSignal1(arg:*):void
Called by the signal when it dispatches.
FunctionSlot1
Constructor detail
FunctionSlot1()constructor
public function FunctionSlot1(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 number of arguments other than one.
Method detail
onSignal1()method
public function onSignal1(arg:*):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 number of arguments other than one.

Parameters
arg:* — Data the signal dispatched