diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 0f8bef77..7d538f2c 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -783,7 +783,7 @@ fill: (this.fill && this.fill.toObject) ? this.fill.toObject() : this.fill, stroke: (this.stroke && this.stroke.toObject) ? this.stroke.toObject() : this.stroke, strokeWidth: toFixed(this.strokeWidth, NUM_FRACTION_DIGITS), - strokeDashArray: this.strokeDashArray ? extend([ ], this.strokeDashArray) : this.strokeDashArray, + strokeDashArray: this.strokeDashArray ? this.strokeDashArray.concat() : this.strokeDashArray, strokeLineCap: this.strokeLineCap, strokeLineJoin: this.strokeLineJoin, strokeMiterLimit: toFixed(this.strokeMiterLimit, NUM_FRACTION_DIGITS), @@ -799,7 +799,7 @@ backgroundColor: this.backgroundColor, fillRule: this.fillRule, globalCompositeOperation: this.globalCompositeOperation, - transformMatrix: this.transformMatrix ? extend([ ], this.transformMatrix) : this.transformMatrix + transformMatrix: this.transformMatrix ? this.transformMatrix.concat() : this.transformMatrix }; if (!this.includeDefaultValues) {