Class: IWLoader

IWLoader

A class to load modules with additional functionality to the API. See section "Loading the API" in the FAQ for details.

new IWLoader()

Singleton constructor

Methods


getModuleNames()

Returns an array containing all module names.
Returns:
the module names
Type
Array.<String>

isLoaded(name)

Checks whether the specified module is loaded or not.
Parameters:
Name Type Description
name String a module name
Returns:
true if the module already is loaded, false otherwise
Type
boolean

isLoading(name)

Checks whether the specified module is currently loading or not.
Parameters:
Name Type Description
name String a module name
Returns:
true if the module already is loaded, false otherwise
Type
boolean

loadModule(name)

Loads the specified module.
Parameters:
Name Type Description
name String a module name
Returns:
Type
void

loadModules(names)

Loads the specified modules.
Parameters:
Name Type Description
names Array.<String> an array of module names
Returns:
Type
void