jsUtils

utils  0.2.4

jsUtils > utils > Utils.signals
Search:
 
Filters

static Class Utils.signals

The main jsUtils signals helpers namespace. Signals are a method for asynchronous notification. Signals are sent to a slot which is made up of a source object and a signal name. Listeners can connect to slot to receive any signals sent there.

Methods

connect

void connect ( src , signal , listener )
Connect a listener to a slot.
Parameters:
src <Object> the source of the slot
signal <String> the name of the slot
listener <Function> the function to be called when a signal is sent to this slot.
Returns: void

signal

void signal ( src , signal )
Send an asynchronous signal to a slot.
Parameters:
src <Object> the source of the slot
signal <String> the name of the slot
Returns: void


Copyright © 2009 Gareth Andrew. All rights reserved.