PluginManager
- auto-gen TOC: {:toc}# Class: PluginManager
PluginManager
new PluginManager(thisObj)
Plugin Manager class
Parameters:
Name | Type | Description |
---|---|---|
thisObj |
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 1
Members
destroy
Clears all plugins and removes the owner reference.
Calling any functions on this object after calling destroy will cause a JS error.
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 109
Methods
deregister(plugin) → {boolean}
Deregisters a plugin.
Parameters:
Name | Type | Description |
---|---|---|
plugin |
string |
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 78
Returns:
Type boolean
exists(plugin) → {boolean}
Checks if the plugin exists in plugins
Parameters:
Name | Type | Description |
---|---|---|
plugin |
string |
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 19
Returns:
Type boolean
isRegistered(plugin) → {boolean}
Checks if the passed plugin is currently registered.
Parameters:
Name | Type | Description |
---|---|---|
plugin |
string |
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 31
Returns:
Type boolean
register(plugin) → {boolean}
Registers a plugin to receive signals
Parameters:
Name | Type | Description |
---|---|---|
plugin |
string |
Source: out/C:/Users/John/repos/SCEditor/src/lib/PluginManager.js, line 54
Returns:
Type boolean