|
|
@ -23,8 +23,8 @@ export function svelte_html(get_attributes) {
|
|
|
|
|
|
|
|
|
|
|
|
for (const name in attributes) {
|
|
|
|
for (const name in attributes) {
|
|
|
|
const current = (current_setters[name] ??= []);
|
|
|
|
const current = (current_setters[name] ??= []);
|
|
|
|
const idx = current.findIndex(([owner]) => owner === own);
|
|
|
|
const index = current.findIndex(([owner]) => owner === own);
|
|
|
|
const old = idx === -1 ? null : current.splice(idx, 1)[0][1];
|
|
|
|
const old = index === -1 ? null : current.splice(index, 1)[0][1];
|
|
|
|
|
|
|
|
|
|
|
|
let value = attributes[name];
|
|
|
|
let value = attributes[name];
|
|
|
|
current.push([own, value]);
|
|
|
|
current.push([own, value]);
|
|
|
|