MCPcopy Create free account
hub / github.com/71/logseq-snippets / constructor

Method constructor

script-block.js:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 if (elementClass === undefined) {
9 elementClass = class extends HTMLElement {
10 constructor() {
11 super();
12
13 this._shadow = this.attachShadow({ mode: "open" });
14 this.render();
15
16 this.addEventListener(
17 "click",
18 (e) => e.stopImmediatePropagation(),
19 );
20 }
21
22 render() {}
23 };

Callers

nothing calls this directly

Calls 1

renderMethod · 0.80

Tested by

no test coverage detected