goog.Disposable | |
goog.module.ModuleInfo | goog.Disposable |
deps
: Array.<string>
Ids of the modules that must be loaded before
this one. The ids must be in dependency order (i.e. if the ith module
depends on the jth module, then i > j).
|
id
: string
The module's ID.
|
Helper to call the callbacks after module load.
Arguments:
Returns: Array.<*>
Any errors encountered while calling the callbacks,
or null if there were no errors.
|
code » | ||||
![]()
No description.
|
code » | ||||
Gets the dependencies of this module.
|
code » | ||||
Gets the ID of this module.
Returns: string
The ID.
|
code » | ||||
Gets the module.
Returns: ?goog.module.BaseModule
The module if it has been loaded.
Otherwise, null.
|
code » | ||||
Gets the uris of this module.
|
code » | ||||
Determines whether the module has been loaded.
Returns: boolean
Whether the module has been loaded.
|
code » | ||||
![]()
Calls the error callbacks for the module.
Arguments:
|
code » | ||||
Sets this module as loaded.
Arguments:
Returns: boolean
Whether any errors occurred while executing the onload
callbacks.
|
code » | ||||
Registers a function that should be called after the module is loaded.
Arguments:
Returns: !goog.module.ModuleLoadCallback
Reference to the callback
object.
|
code » | ||||
Registers a function that should be called after the module is loaded.
Arguments:
Returns: !goog.module.ModuleLoadCallback
Reference to the callback
object.
|
code » | ||||
Registers a function that should be called after the module is loaded. These
early callbacks are called after
Module#initialize is called but
before the other callbacks are called.
Arguments:
Returns: !goog.module.ModuleLoadCallback
Reference to the callback
object.
|
code » | ||||
Registers a function that should be called if the module load fails.
Arguments:
Returns: !goog.module.ModuleLoadCallback
Reference to the callback
object.
|
code » | ||||
![]()
Sets the constructor to use to instantiate the module object after the
module code is loaded.
Arguments:
|
code » | ||||
![]()
Sets the uris of this module.
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
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: void
Nothing.
|
code » | |||
![]()
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() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
![]()
A list of the ids of the modules that must be loaded before this module.
|
Code » | |
![]()
Early callbacks to execute once this module is loaded. Called after
module initialization but before regular onload callbacks.
|
Code » | |
![]()
The module's ID.
|
Code » | |
![]()
The constructor to use to instantiate the module object after the module
code is loaded. This must be either goog.module.BaseModule or a subclass of
it.
|
Code » | |
The module object. This will be null until the module is loaded.
|
Code » | |
![]()
Callbacks to execute if the module load errors.
|
Code » | |
![]()
Callbacks to execute once this module is loaded.
|
Code » | |
![]()
The uris that can be used to retrieve this module's code.
|
Code » |
![]()
No description.
|
Code » |