turns out, we don't need this
This commit is contained in:
parent
f03c6475bc
commit
c4375737bc
1 changed files with 0 additions and 5 deletions
|
@ -57,16 +57,11 @@ export function $el<T extends keyof HTMLElementTagNameMap>(
|
||||||
for (const key in value as Record<string, unknown>) {
|
for (const key in value as Record<string, unknown>) {
|
||||||
el.dataset[key] = (value as Record<string, string>)[key];
|
el.dataset[key] = (value as Record<string, string>)[key];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// For some tricky attributes, set them the old fashioned way using strings
|
|
||||||
if (typeof value === "string") {
|
|
||||||
el.setAttribute(attr, value as string);
|
|
||||||
} else {
|
} else {
|
||||||
el[attr as keyof HTMLElementTagNameMap[T]] =
|
el[attr as keyof HTMLElementTagNameMap[T]] =
|
||||||
value as HTMLElementTagNameMap[T][keyof HTMLElementTagNameMap[T]];
|
value as HTMLElementTagNameMap[T][keyof HTMLElementTagNameMap[T]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
desc.shift();
|
desc.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue