-
exec(pluginName, method, args, callback)
-
Execute a plugin method.
| Name |
Type |
Description |
pluginName |
string
|
Plugin (name) that you want to use |
method |
string
|
Plugin's method that you want to use |
args |
Array
|
Arguments to the method you want to use |
callback |
function
|
Method which be triggered once the plugin's method has finished, it will take one argument which is what the plugin's method returned |
-
init()
-
Create an instance of each plugin already in the prototype.
Essential for the inclusion of the plugins already loaded.
-
isExecWaitingLazyloading(){number}
-
Indicate that at least one method is waiting the end of its plugin's lazyloading.
-
isLazyloading(name){boolean}
-
Check if some plugin is loading.
| Name |
Type |
Description |
name |
string
|
Specific plugin's name |
Returns:
True if one or the specific plugin is loading
-
load(name, Plugin){object}
-
Load a plugin.
| Name |
Type |
Description |
name |
string
|
Plugin's name |
Plugin |
function
|
Plugin's code |
Returns:
Instance of the Tag used
-
unload(name){object}
-
Unload a plugin.
| Name |
Type |
Description |
name |
string
|
Plugin's name |
Returns:
Instance of the Tag used
-
waitForDependencies(dependencies, callback)
-
Execute a callback only when all required plugins are loaded.
| Name |
Type |
Description |
dependencies |
Array
|
Names of the required plugins |
callback |
function
|
Method which be triggered once the dependencies will be loaded |