Class GSModule
Namespace for functions related to dynamically loadable modules.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GSModule()
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
GSModule.isLoaded(name)
Tests if the named module is loaded
|
| <static> |
GSModule.load(modules, callback)
Loads the specified modules.
|
Method Detail
<static>
{boolean}
GSModule.isLoaded(name)
Tests if the named module is loaded
- Parameters:
- {String} name
- the name of the module to test
- Returns:
- {boolean}
trueif the named module is loaded
<static>
GSModule.load(modules, callback)
Loads the specified modules.
- Parameters:
- {mixed} modules
- the name of a module to load or an array of modules to be loaded
- {Function} callback
- function invoked when module loaded
- Throws:
- {Error}
- if
GSModule.load()is called while a pre-existing load operation is in effect