We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7678fa commit 6f499a6Copy full SHA for 6f499a6
src/PluginStore.tsx
@@ -2,12 +2,15 @@ import { IPlugin } from './interfaces/IPlugin';
2
3
export class PluginStore {
4
private functionArray: Map<string, any>;
5
+ private pluginMap: Array<IPlugin>;
6
7
constructor() {
8
this.functionArray = new Map<string, any>();
9
+ this.pluginMap = [];
10
}
11
12
install(plugin: IPlugin) {
13
+ this.pluginMap.push(plugin);
14
plugin.init(this);
15
plugin.activate();
16
0 commit comments