Fork me on GitHub

API Documentation

A events class
Defined in: glge_event.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addEventListener(event, fn)
Adds an event listener
 
fireEvent(event, data)
Fires an event
 
Removes an event listener
Class Detail
GLGE.Events()
Method Detail
addEventListener(event, fn)
Adds an event listener
Parameters:
{string} event
The name of the event to listen for
{function} fn
the event callback

fireEvent(event, data)
Fires an event
Parameters:
{string} event
The name of the event to fire
{object} data
the events data

removeEventListener(fn, fn)
Removes an event listener
Parameters:
{function} fn
the event callback to remove
fn

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)