Package | com.jacksondunstan.signals |
Class | public class FunctionSlot2 |
Implements | Slot2 |
Method | Defined by | ||
---|---|---|---|
FunctionSlot2(func:Function)
Make the slot.
| FunctionSlot2 | ||
onSignal2(arg1:*, arg2:*):void
Called by the signal when it dispatches.
| FunctionSlot2 |
FunctionSlot2 | () | constructor |
public function FunctionSlot2(func:Function)
Make the slot.
Parametersfunc: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 two.
|
onSignal2 | () | method |
public function onSignal2(arg1:*, arg2:*):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 two.
Parametersarg1:* — First data the signal dispatched
|
|
arg2:* — Second data the signal dispatched
|