events.Listener Extends
Simple class that stores information about a listener

Inheritance

Constructor

goog.events.Listener(listenerproxysrctypecaptureopt_handler)

Parameters

listener : !Function
Callback function.
proxy : Function
Wrapper for the listener that patches the event.
src : EventTarget | goog.events.Listenable
Source object for the event.
type : string
Event type.
capture : boolean
Whether in capture or bubble phase.
opt_handler : Object=
Object in whose context to execute the callback.

Instance Methods

Public Protected Private
markAsRemoved()
Marks this listener as removed. This also remove references held by this listener object (such as listener and event source).
code »

Instance Properties

callOnce :
Whether to remove the listener after it has been called.
Code »
capture :
Whether the listener is being called in the capture or bubble phase
Code »
creationStack :
If monitoring the goog.events.Listener instances is enabled, stores the creation stack trace of the Disposable instance.
Code »
handler :
Optional object whose context to execute the listener in
Code »
key :
The key of the listener.
Code »
listener :
Callback function.
Code »
proxy :
A wrapper over the original listener. This is used solely to handle native browser events (it is used to simulate the capture phase and to patch the event object).
Code »
removed :
Whether the listener has been removed.
Code »
Object or node that callback is listening to
Code »
type :
The event type.
Code »

Static Properties

goog.events.Listener.ENABLE_MONITORING :
No description.
Code »

Package events

Package Reference