goog.module.Loader |
Creates a full URL to the compiled module code given a base URL and a
module name. By default it's urlBase + '_' + module + '.js'.
|
code » | ||||
![]()
Initializes the Loader to be fully functional. Also executes load
requests that were received before initialization. Must be called
exactly once, with the URL of the base library. Module URLs are
derived from the URL of the base library by inserting the module
name, preceded by a period, before the .js prefix of the base URL.
Arguments:
|
code » | ||||
![]()
Starts to load a module. Assumes that init() was called.
Arguments:
|
code » | ||||
![]()
Registers a symbol in a loaded module. When called without symbol,
registers the module to be fully loaded and executes all callbacks
from pending require() callbacks for this module.
Arguments:
|
code » | ||||
![]()
Requests the loading of a symbol from a module. When the module is
loaded, the requested symbol will be passed as argument to the
function callback.
Arguments:
|
code » |
![]()
Provides associative access to each module and the symbols of each module
that have aready been loaded (one lookup for the module, another lookup
on the module for the symbol).
|
Code » | |
![]()
Array of modules that have been requested before init() was called.
If require() is called before init() was called, the required
modules can obviously not yet be loaded, because their URL is
unknown. The modules that are requested before init() are
therefore stored in this array, and they are loaded at init()
time.
|
Code » | |
![]()
Map of module name to module url. Used to avoid fetching the same URL
twice by keeping track of in-flight URLs.
Note: this allows two modules to be bundled into the same file.
|
Code » | |
![]()
Map of module name/array of {symbol name, callback} pairs that are pending
to be loaded.
|
Code » | |
![]()
The base url to load modules from. This property will be set in init().
|
Code » |
![]()
No description.
|
code » | ||
![]()
Loads the module by evaluating the javascript text in the current
scope. Uncompiled, base identifiers are visible in the global scope;
when compiled they are visible in the closure of the anonymous
namespace. Notice that this cannot be replaced by the global eval,
because the global eval isn't in the scope of the anonymous
namespace function that the jscompiled code lives in.
Arguments:
|
code » |
![]()
The globally exported name of the load callback. Matches the
definition in the js_modular_binary() BUILD rule.
|
Code » | |
![]()
No description.
|
Code » |