opt: tiny

This commit is contained in:
cha0s 2022-03-30 05:24:02 -05:00
parent 183b9ab119
commit 7e2a4cea44

View File

@ -7,7 +7,8 @@ export default function StateProperty(name, options = {}) {
// eslint-disable-next-line no-new-func
set = new Function('value, old', `
if (value !== old) {
this.markAsDirty();
this.$$markedAsDirty = true;
this.entity.$$markedAsDirty = true;
}
this.state.${name} = value;
`),