Class Bindable
<<<<<<< HEAD
Defined in: GameLib.js.
=======
Defined in: gamelib.js.
>>>>>>> 3fe863faa00b8e51f1f2f53b6d3e10fbf4b349ff
Constructor Attributes | Constructor Name and Description |
---|---|
Bindable()
Bindable module
|
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.
|
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.