Make component.$$.dirty just a dictionary

To be sure that we won't have any hidden behavior related to a prototype: https://davidwalsh.name/object-create-null
pull/2696/head
PaulMaly 6 years ago committed by GitHub
parent 39b1fe224e
commit 90556e97c6
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) { if (!component.$$.dirty) {
dirty_components.push(component); dirty_components.push(component);
schedule_update(); schedule_update();
component.$$.dirty = {}; component.$$.dirty = Object.create(null);
} }
component.$$.dirty[key] = true; component.$$.dirty[key] = true;
} }

Loading…
Cancel
Save