Skip to content

Commit c4041d7

Browse files
committed
fix: faster notifyPropertyChange
1 parent e50534e commit c4041d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/shapes/shape.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,8 @@ export default abstract class Shape extends Observable {
351351
}
352352
canvas.restore();
353353
}
354+
notifyPropertyChange(propertyName, value, oldValue) {
355+
if (!this.mParent) return;
356+
super.notifyPropertyChange(propertyName, value, oldValue);
357+
}
354358
}

0 commit comments

Comments
 (0)