Fix getByName()

This commit is contained in:
evilchili committed 2026-10-21 11:40:29 -07:00
1 parent 0fb18de28e
commit 0df3677579
2 files changed
+2 -6

No files matched your search

+1 -3
View File
@@ -144,9 +144,7 @@ class TagCollection {
}
}
getByName(name) {
return this.tags.filter(t => {
t.constructor.name == name;
})[0] || undefined;
return this.tags.filter(t => t.constructor.name == name)[0] || undefined;
}
getByElementName(element) {
const el = element.toUpperCase();