Class goog.events.Listener

code »
All implemented interfaces:
goog.events.ListenableKey

Simple class that stores information about a listener

Constructor

goog.events.Listener ( listener, proxy, src, type, capture, opt_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.
Show:

Instance Methods

Marks this listener as removed. This also remove references held by this listener object (such as listener and event source).

Instance Properties

Whether to remove the listener after it has been called.

Whether the listener is being called in the capture or bubble phase

If monitoring the goog.events.Listener instances is enabled, stores the creation stack trace of the Disposable instance.

Optional object whose context to execute the listener in

The key of the listener.

Callback function.

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).

Whether the listener has been removed.

Object or node that callback is listening to

The event type.

Compiler Constants