Skip to content

Commit 22dbd75

Browse files
authored
refactor: make CommentView more amenable to subclassing. (#8783)
1 parent b343a13 commit 22dbd75

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/comments/comment_view.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,18 @@ export class CommentView implements IRenderedElement {
9595
private resizePointerMoveListener: browserEvents.Data | null = null;
9696

9797
/** Whether this comment view is currently being disposed or not. */
98-
private disposing = false;
98+
protected disposing = false;
9999

100100
/** Whether this comment view has been disposed or not. */
101-
private disposed = false;
101+
protected disposed = false;
102102

103103
/** Size of this comment when the resize drag was initiated. */
104104
private preResizeSize?: Size;
105105

106106
/** The default size of newly created comments. */
107107
static defaultCommentSize = new Size(120, 100);
108108

109-
constructor(private readonly workspace: WorkspaceSvg) {
109+
constructor(readonly workspace: WorkspaceSvg) {
110110
this.svgRoot = dom.createSvgElement(Svg.G, {
111111
'class': 'blocklyComment blocklyEditable blocklyDraggable',
112112
});

0 commit comments

Comments
 (0)