Class orion.editor.EventTarget
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a new EventTarget object.
|
Method Attributes | Method Name and Description |
---|---|
addEventListener(type, listener, useCapture)
Adds an event listener to this event target.
|
|
dispatchEvent(evt)
Dispatches the given event to the listeners added to this event target.
|
|
isListening(type)
Returns whether there is a listener for the specified event type.
|
|
removeEventListener(type, listener, useCapture)
Removes an event listener from the event target.
|
Method Detail
addEventListener(type, listener, useCapture)
Adds an event listener to this event target.
- Parameters:
- {String} type
- The event type.
- {Function|EventListener} listener
- The function or the EventListener that will be executed when the event happens.
- {Boolean} useCapture Optional, Default: false
true
if the listener should be trigged in the capture phase.
dispatchEvent(evt)
Dispatches the given event to the listeners added to this event target.
- Parameters:
- {Event} evt
- The event to dispatch.
isListening(type)
Returns whether there is a listener for the specified event type.
- Parameters:
- {String} type
- The event type
removeEventListener(type, listener, useCapture)
Removes an event listener from the event target.
All the parameters must be the same ones used to add the listener.
- Parameters:
- {String} type
- The event type
- {Function|EventListener} listener
- The function or the EventListener that will be executed when the event happens.
- {Boolean} useCapture Optional, Default: false
true
if the listener should be trigged in the capture phase.