©2010
<<<<<<< HEAD Generated by JsDoc Toolkit 2.4.0 on Mon Mar 21 2011 06:33:39 GMT-0000 (UTC)
======= Generated by JsDoc Toolkit 2.4.0 on Mon Apr 04 2011 02:43:31 GMT-0000 (UTC)
>>>>>>> 3fe863faa00b8e51f1f2f53b6d3e10fbf4b349ff HTML template: Codeview

Class Bindable

<<<<<<< HEAD
Defined in: GameLib.js. =======
Defined in: gamelib.js. >>>>>>> 3fe863faa00b8e51f1f2f53b6d3e10fbf4b349ff

Class Summary
Constructor Attributes Constructor Name and Description
 
Bindable module
Method Summary
Method Attributes Method Name and Description
 
bind(event, callback)
The bind method adds a function as an event listener.
 
trigger(event, extraParameters)
The trigger method calls all listeners attached to the specified event.
Class Detail
Bindable()
Bindable module
Method Detail
bind(event, callback)
The bind method adds a function as an event listener.
Parameters:
{String} event
The event to listen to.
{Function} callback
The function to be called when the specified event is triggered.
trigger(event, extraParameters)
The trigger method calls all listeners attached to the specified event.
Parameters:
{String} event
The event to trigger.
{Array} extraParameters Optional
Additional parameters to pass to the event listener.