disposable.js
No description.

File Location

/goog/disposable/disposable.js

Classes

goog.Disposable
Class that provides the basic implementation for disposable objects. If your class holds one or more references to COM objects, DOM nodes, or other disposable objects, it should extend this class or implement the disposable interface (defined in goog.disposable.IDisposable).

Public Protected Private

Enumerations

Global Functions

goog.Disposable.clearUndisposedObjects()
Clears the registry of undisposed objects but doesn't dispose of them.
code »
goog.dispose(obj)
Calls dispose on the argument if it supports it. If obj is not an object with a dispose() method, this is a no-op.
Arguments:
obj : *
The object to dispose of.
code »
goog.disposeAll(var_args)
Calls dispose on each member of the list that supports it. (If the member is an ArrayLike, then goog.disposeAll() will be called recursively on each of its members.) If the member is not an object with a dispose() method, then it is ignored.
Arguments:
var_args : ...*
The list.
code »
goog.Disposable.getUndisposedObjects() !Array.<!goog.Disposable>
No description.
Returns: !Array.<!goog.Disposable>  All goog.Disposable objects that haven't been disposed of.
code »
goog.Disposable.isDisposed(obj) boolean
Returns True if we can verify the object is disposed. Calls isDisposed on the argument if it supports it. If obj is not an object with an isDisposed() method, return false.
Arguments:
obj : *
The object to investigate.
Returns: boolean  True if we can verify the object is disposed.
code »

Directory disposable

File Reference