diff --git a/src/shapes/polyline.class.js b/src/shapes/polyline.class.js index 5d0b7b85b36..fbf9301cd5b 100644 --- a/src/shapes/polyline.class.js +++ b/src/shapes/polyline.class.js @@ -83,6 +83,7 @@ }, _setPositionDimensions: function(options) { + options || (options = {}); var calcDim = this._calcDimensions(options), correctLeftTop, correctSize = this.exactBoundingBox ? this.strokeWidth : 0; this.width = calcDim.width - correctSize;