mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Remove explicit ids, as they are not necessary anymore
This commit is contained in:
parent
5e67e706fb
commit
79dc0ecf86
1 changed files with 0 additions and 17 deletions
|
@ -430,16 +430,6 @@ class EditingArea extends HTMLElement {
|
||||||
this.setAttribute("contenteditable", "");
|
this.setAttribute("contenteditable", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static get observedAttributes(): string[] {
|
|
||||||
return ['ord'];
|
|
||||||
}
|
|
||||||
|
|
||||||
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void {
|
|
||||||
switch (name) {
|
|
||||||
case "ord": this.id = `editor-field-${newValue}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
set fieldHTML(content: string) {
|
set fieldHTML(content: string) {
|
||||||
this.innerHTML = content;
|
this.innerHTML = content;
|
||||||
|
|
||||||
|
@ -483,13 +473,6 @@ class EditingContainer extends HTMLDivElement {
|
||||||
return ['ord'];
|
return ['ord'];
|
||||||
}
|
}
|
||||||
|
|
||||||
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void {
|
|
||||||
switch (name) {
|
|
||||||
case "ord":
|
|
||||||
this.id = `f${newValue}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get ord(): number {
|
get ord(): number {
|
||||||
return Number(this.getAttribute("ord"));
|
return Number(this.getAttribute("ord"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue