Class Index | File Index

Classes


Class orion.EventTarget

Base for creating an Orion event target
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.core/web/orion/EventTarget.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates an Event Target
Method Summary
Method Attributes Method Name and Description
 
addEventListener(eventName, listener)
Adds an event listener for a named event
 
Dispatches a named event along with an arbitrary set of arguments.
 
removeEventListener(eventName, listener)
Removes an event listener for a named event
Class Detail
orion.EventTarget()
Creates an Event Target
Method Detail
addEventListener(eventName, listener)
Adds an event listener for a named event
Parameters:
{String} eventName
The event name
{Function} listener
The function called when an event occurs

{boolean} dispatchEvent(event)
Dispatches a named event along with an arbitrary set of arguments. Any arguments after eventName will be passed to the event listener(s).
Parameters:
{Object} event
The event to dispatch. The event object MUST have a type field
Returns:
{boolean} false if the event has been canceled and any associated default action should not be performed listeners (if any) have resolved.

removeEventListener(eventName, listener)
Removes an event listener for a named event
Parameters:
{String} eventName
The event name
{Function} listener
The function called when an event occurs

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Apr 01 2014 22:58:23 GMT-0400 (EDT)