Skip to content

Commit 6f499a6

Browse files
committed
Plugin array added
1 parent e7678fa commit 6f499a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PluginStore.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ import { IPlugin } from './interfaces/IPlugin';
22

33
export class PluginStore {
44
private functionArray: Map<string, any>;
5+
private pluginMap: Array<IPlugin>;
56

67
constructor() {
78
this.functionArray = new Map<string, any>();
9+
this.pluginMap = [];
810
}
911

1012
install(plugin: IPlugin) {
13+
this.pluginMap.push(plugin);
1114
plugin.init(this);
1215
plugin.activate();
1316
}

0 commit comments

Comments
 (0)