Skip to content

Commit

Permalink
Merge pull request #2696 from PaulMaly/patch-1
Browse files Browse the repository at this point in the history
Make component.$$.dirty just a dictionary
  • Loading branch information
Rich-Harris committed May 9, 2019
2 parents db96b6b + 21a5169 commit 6defc5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/Component.js
Expand Up @@ -48,7 +48,7 @@ function make_dirty(component, key) {
if (!component.$$.dirty) {
dirty_components.push(component);
schedule_update();
component.$$.dirty = {};
component.$$.dirty = blank_object();
}
component.$$.dirty[key] = true;
}
Expand Down Expand Up @@ -188,4 +188,4 @@ export class SvelteComponentDev extends SvelteComponent {
console.warn(`Component was already destroyed`); // eslint-disable-line no-console
};
}
}
}

0 comments on commit 6defc5b

Please sign in to comment.