goog.events.ListenerMap |
src
: EventTarget | goog.events.Listenable
The src object.
|
Adds an event listener. A listener can only be added once to an
object and if it is added again the key for the listener is
returned.
Note that a one-off listener will not change an existing listener,
if any. On the other hand a normal listener will change existing
one-off listener to become a normal listener.
Arguments:
Returns: goog.events.ListenableKey
Unique key for the listener.
|
code » | ||||||
Gets the goog.events.ListenableKey for the event or null if no such
listener is in use.
Arguments:
Returns: goog.events.ListenableKey
the found listener or null if not found.
|
code » | ||||||
No description.
Returns: number
Total number of registered listeners.
|
code » | ||||||
Gets all listeners that match the given type and capture mode. The
returned array is a copy (but the listener objects are not).
Arguments:
|
code » | ||||||
No description.
Returns: number
The count of event types in this map that actually
have registered listeners.
|
code » | ||||||
Whether there is a matching listener. If either the type or capture
parameters are unspecified, the function will match on the
remaining criteria.
|
code » | ||||||
Removes a matching listener.
Arguments:
Returns: boolean
Whether any listener was removed.
|
code » | ||||||
Removes all listeners from this map. If opt_type is provided, only
listeners that match the given type are removed.
|
code » | ||||||
Removes the given listener object.
Arguments:
Returns: boolean
Whether the listener is removed.
|
code » |
![]()
Finds the index of a matching goog.events.Listener in the given
listenerArray.
Arguments:
Returns: number
The index of the matching listener within the
listenerArray.
|
code » |