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

Class

script-block.js:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
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 };
24
25 elements.set(name, elementClass);
26 customElements.define(name, elementClass);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected