opt: tiny
This commit is contained in:
parent
183b9ab119
commit
7e2a4cea44
|
@ -7,7 +7,8 @@ export default function StateProperty(name, options = {}) {
|
||||||
// eslint-disable-next-line no-new-func
|
// eslint-disable-next-line no-new-func
|
||||||
set = new Function('value, old', `
|
set = new Function('value, old', `
|
||||||
if (value !== old) {
|
if (value !== old) {
|
||||||
this.markAsDirty();
|
this.$$markedAsDirty = true;
|
||||||
|
this.entity.$$markedAsDirty = true;
|
||||||
}
|
}
|
||||||
this.state.${name} = value;
|
this.state.${name} = value;
|
||||||
`),
|
`),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user