Class gui.EventManager-EventDelegate
Defined in: EventManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<inner> |
gui.EventManager-EventDelegate(eventName)
Ensures events that may bubble through multiple sources are only handled once.
|
Field Attributes | Field Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
destroy()
|
|
<inner> |
handleEvent(e)
|
<inner> |
listenEvent(eventTarget, eventType, eventHandler)
|
<inner> |
removeEvent(eventTarget, eventType, eventHandler)
|
subscribe(cb)
|
|
unsubscribe(cb)
|
Class Detail
<inner>
gui.EventManager-EventDelegate(eventName)
Ensures events that may bubble through multiple sources are only handled once.
- Parameters:
- {!string} eventName
- Event this delegate is to listen for
Field Detail
filters
Method Detail
{undefined}
destroy()
- Returns:
- {undefined}
<inner>
{undefined}
handleEvent(e)
- Parameters:
- {!Event} e
- Returns:
- {undefined}
<inner>
{undefined}
listenEvent(eventTarget, eventType, eventHandler)
- Parameters:
- {!Element|!Window} eventTarget
- {!string} eventType
- {function(!Event)|function()} eventHandler
- Returns:
- {undefined}
<inner>
{undefined}
removeEvent(eventTarget, eventType, eventHandler)
- Parameters:
- {!Element|!Window} eventTarget
- {!string} eventType
- {function(!Event)|function()} eventHandler
- Returns:
- {undefined}
{undefined}
subscribe(cb)
- Parameters:
- {!Function} cb
- Returns:
- {undefined}
{undefined}
unsubscribe(cb)
- Parameters:
- {!Function} cb
- Returns:
- {undefined}