Skip to content

Commit 529e201

Browse files
committed
Remove unused plugin prop
1 parent 0436de7 commit 529e201

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/editor/EditorPlugin.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ interface SectionCountData {
8686
}
8787

8888
class SectionWidget extends WidgetType {
89-
plugin: BetterWordCount;
9089
data: SectionCountData;
9190

92-
constructor(plugin: BetterWordCount, data: SectionCountData) {
91+
constructor(data: SectionCountData) {
9392
super();
94-
this.plugin = plugin;
9593
this.data = data;
9694
}
9795

@@ -298,7 +296,7 @@ class SectionWordCountEditorPlugin implements PluginValue {
298296
data.pos,
299297
Decoration.widget({
300298
side: 1,
301-
widget: new SectionWidget(plugin, data),
299+
widget: new SectionWidget(data),
302300
})
303301
);
304302
}

0 commit comments

Comments
 (0)