Merge pull request #2696 from PaulMaly/patch-1

Make component.$$.dirty just a dictionary
pull/2726/head
Rich Harris 5 years ago committed by GitHub
commit 6defc5b73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}
@ -188,4 +188,4 @@ export class SvelteComponentDev extends SvelteComponent {
console.warn(`Component was already destroyed`); // eslint-disable-line no-console
};
}
}
}

Loading…
Cancel
Save