diff --git a/package.json b/package.json index f1946ee..8e24a67 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "svg.path.js", "version": "0.6.2", "description": "A path extension for the svg.js library", + "main": "svg.path.js", "keywords": [ "svg", "svg.js", diff --git a/svg.path.js b/svg.path.js index abe23d3..69f1beb 100644 --- a/svg.path.js +++ b/svg.path.js @@ -212,7 +212,7 @@ this._lastSegment = lastSegment; - return this.attr('d', (this.attr('d') || '') + str); + return this.plot((this.attr('d') || '') + str); } });