From 0bf4b2a7f7893896b29dac3ce498d57eb59a184b Mon Sep 17 00:00:00 2001 From: fktalbert Date: Mon, 22 May 2017 20:00:00 +0800 Subject: [PATCH] fix polyline toSVG (#3951) * fix polyline toSVG init diffX and diffY = 0 * removing trailing space --- src/shapes/polyline.class.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shapes/polyline.class.js b/src/shapes/polyline.class.js index 3fab26f3..c06c6fae 100644 --- a/src/shapes/polyline.class.js +++ b/src/shapes/polyline.class.js @@ -126,7 +126,9 @@ * @return {String} svg representation of an instance */ toSVG: function(reviver) { - var points = [], diffX, diffY, + var points = [], + diffX = 0, + diffY = 0, markup = this._createBaseSVGMarkup(); if (!(this.group && this.group.type === 'path-group')) {