Skip to content

Commit 3e25b5c

Browse files
committed
feat: add plugin class
1 parent 1ba650c commit 3e25b5c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/plugins/plugin.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
export class Plugin {
4+
constructor() {
5+
this.usedByAComponent = true;
6+
this.initialized = false;
7+
this.callbacks = [];
8+
}
9+
10+
onEvent(callback) {
11+
this.callbacks.push(callback);
12+
}
13+
}

0 commit comments

Comments
 (0)