Skip to content

Commit

Permalink
Update packages/svelte/src/internal/client/dom/blocks/svelte-html.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Dec 17, 2024
1 parent e33e2cb commit 7c629e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/src/internal/client/dom/blocks/svelte-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 7c629e8

Please sign in to comment.