Members
app :App
Reference to the app instance
Type:
- Source
plugin :Plugin
Reference to the plugin instance that this Tools class is associated with
Type:
- Source
Methods
bindThis(…names) → {void}
Force bind methods to this context.
Since JavaScript's this is dynamic, this method is useful to ensure that the methods always refer to the correct instance of the class.
Typically, you would call this method in the constructor of your plugin class, passing an array of method names or imported functions that you want to bind.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
names | string | | <repeatable> | Method's names or function references to bind to |
- Source
Returns:
- Type:
- void
(async) dispose() → {Promise.<void>}
Dispose internal references.
- Source
Returns:
- Type:
- Promise.<void>