Class twodee.Object
The base class for other twodee objects.
Defined in: Object.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a new twodee object.
|
Method Attributes | Method Name and Description |
---|---|
connect(signal, func, context)
Connects a slot to a signal.
|
|
disconnect(signal, func, context)
Disconnects a slot from a signal.
|
|
sendSignal(signal, varargs)
Sends a signal.
|
Method Detail
connect(signal, func, context)
Connects a slot to a signal.
- Parameters:
- {string} signal
- The signal
- {function(...)} func
- The slot function
- {Object} context
- The function context (Optional, defaults to "window")
disconnect(signal, func, context)
Disconnects a slot from a signal.
- Parameters:
- {string} signal
- The signal. If not specified then everything is disconnected
- {function(...)} func
- The slot function. If not specified then all handlers for specified signal are disconnected
- {Object} context
- The function context (Optional, defaults to "window")
sendSignal(signal, varargs)
Sends a signal.
- Parameters:
- {string} signal
- The signal to send
- {...} varargs
- Variable number of optional arguments passed to the slots