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) {
dirty_components.push(component);
schedule_update();
component.$$.dirty = {};
component.$$.dirty = Object.create(null);
}
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