interface.js: rename Element to InterfaceElement

Element might cause conflicts
This commit is contained in:
dogeystamp 2022-12-30 16:54:38 -05:00
parent d2a140fa79
commit ed1da1faf0
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -1,4 +1,4 @@
class Element { class InterfaceElement {
constructor({id, tag}) { constructor({id, tag}) {
this.id = id; this.id = id;
if (tag !== undefined) { if (tag !== undefined) {
@ -23,7 +23,7 @@ class Element {
} }
class Form extends Element { class Form extends InterfaceElement {
constructor({id, tag}) { constructor({id, tag}) {
super(id, tag); super(id, tag);
@ -79,7 +79,7 @@ function bufToB64 (buf) {
return btoa(ascii); return btoa(ascii);
} }
class FormElement extends Element { class FormElement extends InterfaceElement {
#enabled = true; #enabled = true;
get enabled() { get enabled() {
return this.#enabled; return this.#enabled;