fix polyline toSVG (#3951)

* fix polyline toSVG
init diffX and diffY = 0


* removing trailing space
This commit is contained in:
fktalbert 2017-05-22 20:00:00 +08:00 committed by Andrea Bogazzi
parent e1f34f7a6d
commit 0bf4b2a7f7

View file

@ -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')) {