goog.module
Namespacegoog.module.AbstractModuleLoader
InterfaceAn interface that loads JavaScript modules. @interface … more
goog.module.BaseModule
ClassA basic module object that represents a module of Javascript code that can be dynamically loaded. … more
goog.module.Loader
ClassThe dynamic loading functionality is defined as a class. The class will be used as singleton. There is, however, a two step initialization procedure because parameters need to be passed to the goog.module.Loader instance. … more
goog.module.ModuleInfo
ClassA ModuleInfo object is used by the ModuleManager to hold information about a module of js code that may or may not yet be loaded into the environment. … more
goog.module.ModuleLoadCallback
ClassClass used to encapsulate the callbacks to be called when a module loads. … more
goog.module.ModuleLoader
ClassA class that loads Javascript modules. … more
goog.module.ModuleManager
ClassThe ModuleManager keeps track of all modules in the environment. Since modules may not have their code loaded, we must keep track of them. … more
.initLoader(urlBase, opt_urlFunction)
Wrapper of init() so that we only need to export this single identifier instead of three. See method goog.module.Loader.init() for explanation of param.
urlBase
{string
}
opt_urlFunction
{Function
=}
.loaderCall(module, symbol)
Produces a function that delegates all its arguments to a dynamically loaded function. This is used to export dynamically loaded functions.
module
{string
}
symbol
{number
|string
}
Function
}
.provide(module, opt_symbol, opt_object)
Wrapper of goog.module.Loader.provide() for use in modules See method goog.module.Loader.provide() for explanation of params.
module
{string
}
opt_symbol
{number
|string
=}
opt_object
{Object
=}
.require(module, symbol, callback)
Wrapper of goog.module.Loader.require() for use in modules. See method goog.module.Loader.require() for explanation of params.
module
{string
}
symbol
{number
|string
}
callback
{Function
}
.requireMultipleSymbols(symbolRequests, finalCb)
Requires symbols for multiple modules, and invokes a final callback on the condition that all of them are loaded. I.e. a barrier for loading of multiple symbols. If no symbols are required, the final callback is called immediately.
symbolRequests
{Array
.<Object
>}
finalCb
{Function
}
goog.module.testdata
Namespace