Revert "revert changes to js files"

This reverts commit fa2582d1e1.
This commit is contained in:
Niels Lyngsø
2023-06-09 09:02:16 +02:00
parent fa2582d1e1
commit 2a37caf4a5
2 changed files with 12 additions and 12 deletions

View File

@@ -4,10 +4,10 @@ template.innerHTML = `
`;
export default class MyPropertyEditorUI extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'});
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
}
customElements.define('my-property-editor-ui-custom', MyPropertyEditorUI);
customElements.define('my-property-editor-ui-custom', MyPropertyEditorUI);

View File

@@ -15,11 +15,11 @@ template.innerHTML = `
`;
export default class MySectionCustom extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'});
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
}
customElements.define('my-section-custom', MySectionCustom);
customElements.define('my-section-custom', MySectionCustom);