goog.loader.activeModuleManager
Module ID |
---|
A singleton interface for managing JavaScript code modules.
Exported Functions
beforeLoadModuleCode( id ) → void
void
Method called just before module code is loaded.
Parameters |
|
---|
configure( configureFn ) → void
void
Applys a configuration function on moduleManager if it exists. Otherwise store the configuration function inside of configureFunctions list so that they can be applied when moduleManager is instantiated.
Parameters |
|
---|
Gets the active module manager, instantiating one if necessary.
Parameters | None. | |
---|---|---|
Returns |
|
maybeInitialize( info, loadingModuleIds ) → void
void
Initialize the module manager.
Parameters |
|
---|
reset() → void
void
Test-only method for removing the active module manager.
set( newModuleManager ) → void
void
Sets the active module manager. This should never be used to override an existing manager.
Parameters |
|
---|
setDefault( fn ) → void
void
Stores a callback that will be used to get an AbstractModuleManager instance if set() is not called before the first get() call.
Parameters |
|
---|
setLoaded() → void
void
Records that the currently loading module was loaded. Also initiates loading the next module if any module requests are queued. This method is called by code that is generated and appended to each dynamic module's code at compilation time.