mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
use lastChild
This commit is contained in:
parent
89f33a1730
commit
562d7a7cf4
@ -109,10 +109,8 @@ class EntityFilterBadge extends HTMLElement implements LovelaceBadge {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let child = this.lastElementChild;
|
while (this.lastChild) {
|
||||||
while (child) {
|
this.removeChild(this.lastChild);
|
||||||
this.removeChild(child);
|
|
||||||
child = this.lastElementChild;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const element of this._elements) {
|
for (const element of this._elements) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user