Fix style TypeScript errors

This commit is contained in:
Kevin Schmidt
2018-09-14 15:57:21 -06:00
parent 7912c5d711
commit 124fccf127
8 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class Stroke {
clone() {
const color = this.getColor();
return new Stroke({
color: (color && color.slice) ? color.slice() : color || undefined,
color: Array.isArray(color) ? color.slice() : color || undefined,
lineCap: this.getLineCap(),
lineDash: this.getLineDash() ? this.getLineDash().slice() : undefined,
lineDashOffset: this.getLineDashOffset(),