Class GSEventBroadcasterMixin

GSEventBroadcasterMixin is a mixin class for adding listener capabilities to Javascript objects.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Adds the specified object as a listener on this object.
 
Removes all listeners
 
Removes the specified object as a listener from this object
Class Detail
GSEventBroadcasterMixin()
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} true if 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} true if the specified listener object was removed successfully

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Mar 07 2012 11:47:28 GMT+1300 (NZDT)