disposable.js
Implements the disposable interface. The dispose method is used to clean up references and resources.

File Location

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

Global Functions

goog.disposeAll.apply()
No description.
code »
goog.Disposable.call()
No description.
code »
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()
No description.
Returns:   All goog.Disposable objects that haven't been disposed of.
code »

Global Properties

goog.Disposable.instances_ :
Maps the unique ID of every undisposed goog.Disposable object to the object itself.
Code »

Directory disposable

File Reference