| goog.Disposable | |
| goog.events.Event | goog.Disposable |
| Many (40) | goog.events.Event |
|
type
:
Event Type.
|
|
opt_target
:
Reference to the object that is the target of this event. It has to implement the
EventTarget interface declared at http://developer.mozilla.org/en/DOM/EventTarget. |
dispose()
⇒ undefined
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal. Classes that extend
goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns:
undefined
Nothing.
|
code » | ||
disposeInternal()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() {
goog.base(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);
mypackage.MyClass.prototype.disposeInternal = function() {
goog.base(this, 'disposeInternal');
// Dispose logic specific to MyClass.
...
};
|
code » | ||
|
Use #isDisposed instead.
No description.
Returns:
Whether the object has been disposed of.
|
code » | ||
|
No description.
Returns:
Whether the object has been disposed of.
|
code » | ||
registerDisposable(disposable)
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
goog.events.Event.call()
No description.
|
code » | ||
goog.events.Event.preventDefault(e)
Prevents the default action. It is equivalent to
e.preventDefault(), but can be used as the callback argument of
goog.events.listen without declaring another function.
Arguments:
|
code » | ||
goog.events.Event.stopPropagation(e)
Stops the propagation of the event. It is equivalent to
e.stopPropagation(), but can be used as the callback argument of
goog.events.listen without declaring another function.
Arguments:
|
code » |