File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export abstract class ElementComponent<T extends Element> extends NodeComponent<
131131 * Template literal tag function that accepts HTML code with components in a
132132 * string literal and returns a {@link DocumentComponent}
133133 */
134- public tag ( strings : TemplateStringsArray , ...components : NodeComponent < any > [ ] ) : DocumentComponent {
134+ public static tag ( strings : TemplateStringsArray , ...components : NodeComponent < any > [ ] ) : DocumentComponent {
135135 const ids = Array . from ( { length : components . length } , ( ) => crypto . randomUUID ( ) ) ;
136136 const doc = new DocumentComponent ( strings . reduce ( ( acc , str , index ) => {
137137 acc += str ;
@@ -159,7 +159,7 @@ export abstract class ElementComponent<T extends Element> extends NodeComponent<
159159 * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals Template literals (Template strings) - MDN
160160 */
161161 public html ( strings : TemplateStringsArray , ...components : NodeComponent < any > [ ] ) : this {
162- return this . append ( this . tag ( strings , ...components ) ) ;
162+ return this . append ( ElementComponent . tag ( strings , ...components ) ) ;
163163 }
164164
165165 /**
You can’t perform that action at this time.
0 commit comments