diff --git a/lib/block/base/treeNode.ts b/lib/block/base/treeNode.ts index 987d700..efdbd45 100644 --- a/lib/block/base/treeNode.ts +++ b/lib/block/base/treeNode.ts @@ -16,8 +16,8 @@ interface IConstructor { } abstract class TreeNode extends LinkedNode { - public parent: Parent | null = null; - public domNode: HTMLElement | null = null; + public parent: Nullable = null; + public domNode: Nullable = null; public tagName: string = ""; public classList: string[] = []; public attributes: Attributes = {}; @@ -241,7 +241,6 @@ abstract class TreeNode extends LinkedNode { this.parent.children.remove(this); this.parent = null; this.domNode?.remove(); - this.domNode = null; return this; }