Update packages/svelte/src/internal/client/dom/blocks/svelte-html.js

svelte-html
Rich Harris 1 week ago committed by GitHub
parent e33e2cb685
commit 7c629e8988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save