Class orion.serviceregistry.EventTarget
Base for creating an Orion event target
Defined in: </shared/eclipse/e4/orion/I201207231242/plugins/org.eclipse.orion.client.core/web/orion/serviceregistry.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates an Event Target
|
Method Attributes | Method Name and Description |
---|---|
addEventListener(eventName, listener)
Adds an event listener for a named event
|
|
dispatchEvent(eventName)
Dispatches a named event along with an arbitrary set of arguments.
|
|
removeEventListener(eventName, listener)
Removes an event listener for a named event
|
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
dispatchEvent(eventName)
Dispatches a named event along with an arbitrary set of arguments. Any arguments after
eventName
will be passed to the event listener(s).
- Parameters:
- {String} eventName
- The event name
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