Skip to content

Commit 15eeb74

Browse files
author
zhouhongxuan
committed
fix(index): change .options to a private field
1 parent d52d63b commit 15eeb74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export default class Highlighter extends EventEmitter {
2626

2727
static isHighlightWrapNode = isHighlightWrapNode;
2828

29-
options: HighlighterOptions;
30-
3129
hooks: HookMap;
3230

3331
painter: Painter;
@@ -36,6 +34,8 @@ export default class Highlighter extends EventEmitter {
3634

3735
private _hoverId: string;
3836

37+
private options: HighlighterOptions;
38+
3939
private readonly event = getInteraction();
4040

4141
constructor(options?: HighlighterOptions) {

0 commit comments

Comments
 (0)