Class GSEventBroadcasterMixin
GSEventBroadcasterMixin is a mixin class for adding listener
capabilities to Javascript objects.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
addListener(obj)
Adds the specified object as a listener on this object.
|
|
|
Removes all listeners
|
|
|
removeListener(obj)
Removes the specified object as a listener from this object
|
Method Detail
{boolean}
addListener(obj)
Adds the specified object as a listener on this object. The listener
object should provide callback methods for any events it wishes to
support
- Parameters:
- {Object} obj
- the object that should be added as a listener
- Returns:
- {boolean}
trueif the object was successfully added as a listener
clearListeners()
Removes all listeners
{boolean}
removeListener(obj)
Removes the specified object as a listener from this object
- Parameters:
- {Object} obj
- the object that should be removed as a listener
- Returns:
- {boolean}
trueif the specified listener object was removed successfully