Objectgoog.Disposable
goog.events.EventHandler
opt_handler
:
Object in whose scope to call the listeners.
|
![]()
No description.
|
code » | ||||||
![]()
Default event handler
Arguments:
|
code » | ||||||
Listen to an event on a DOM node or EventTarget. If the function is ommitted
then the EventHandler's handleEvent method will be used.
Arguments:
Returns:
This object, allowing for chaining of calls.
|
code » | ||||||
Listen to an event on a DOM node or EventTarget. If the function is ommitted
then the EventHandler's handleEvent method will be used. After the event has
fired the event listener is removed from the target. If an array of event
types is provided, each event type will be listened to once.
Arguments:
Returns:
This object, allowing for chaining of calls.
|
code » | ||||||
Adds an event listener with a specific event wrapper on a DOM Node or an
object that has implemented {@link goog.events.EventTarget}. A listener can
only be added once to an object.
Arguments:
Returns:
This object, allowing for chaining of calls.
|
code » | ||||||
![]()
Record the key returned for the listener so that it can be user later
to remove the listener.
Arguments:
|
code » | ||||||
![]()
No description.
|
code » | ||||||
Unlistens on an event.
Arguments:
Returns:
This object, allowing for chaining of calls.
|
code » | ||||||
Removes an event listener which was added with listenWithWrapper().
Arguments:
Returns:
This object, allowing for chaining of calls.
|
code » |
![]()
No description.
|
code » | |
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend {@code goog.Disposable} should
override this method. For example:
mypackage.MyClass = function() { goog.Disposable.call(this); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { mypackage.MyClass.superClass_.disposeInternal.call(this); // Dispose logic specific to MyClass. ... }; |
code » | |
No description.
Returns:
Whether the object has been disposed of.
|
code » | |
No description.
Returns:
Whether the object has been disposed of.
|
code » |
Initial count for the keyPool_
|
Code » | |
Max count for the keyPool_
|
Code » | |
SimplePool to cache the key object. This was implemented to make IE6
performance better and removed an object allocation in the listen method
when in steady state.
|
Code » | |
Keys for event that is being listened to if only one event is being listened
to. This is a performance optimization to avoid creating an extra object
if not necessary.
|
Code » | |
Keys for events that are being listened to. This is used once there are more
than one event to listen to. If there is only one event to listen to, key_
is used.
|
Code » |