Skip to content

Commit ee215a8

Browse files
committed
fix: use setters for color changes
1 parent 1fba8af commit ee215a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/CoreNode.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,10 +2117,10 @@ export class CoreNode extends EventEmitter {
21172117
const has = value > 0;
21182118
this.hasColorProps = has;
21192119

2120-
if (p.colorTop !== value) p.colorTop = value;
2121-
if (p.colorBottom !== value) p.colorBottom = value;
2122-
if (p.colorLeft !== value) p.colorLeft = value;
2123-
if (p.colorRight !== value) p.colorRight = value;
2120+
if (p.colorTop !== value) this.colorTop = value;
2121+
if (p.colorBottom !== value) this.colorBottom = value;
2122+
if (p.colorLeft !== value) this.colorLeft = value;
2123+
if (p.colorRight !== value) this.colorRight = value;
21242124

21252125
this.setUpdateType(UpdateType.PremultipliedColors);
21262126
}

0 commit comments

Comments
 (0)