Skip to content

Commit 1ea0ea5

Browse files
committed
Merge remote-tracking branch 'origin/html-string-literals' into html-string-literals
2 parents 1d2d033 + d2b5de2 commit 1ea0ea5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ElementComponent.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ export abstract class ElementComponent<T extends Element> extends NodeComponent<
177177
return super.on(type as any, listener, c as any);
178178
}
179179

180+
public override empty() {
181+
this.node.replaceChildren();
182+
return this;
183+
}
184+
180185
/**
181186
* Get this component's outer HTML
182187
*/

0 commit comments

Comments
 (0)