diff --git a/package.json b/package.json index f1946ee..9deca4d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "svg.path.js", + "main": "svg.path.js", "version": "0.6.2", "description": "A path extension for the svg.js library", "keywords": [ diff --git a/svg.path.js b/svg.path.js index abe23d3..700c262 100644 --- a/svg.path.js +++ b/svg.path.js @@ -125,7 +125,7 @@ return this; }, - clear: function(){ + clearPath: function(){ if (this._segments){ this._segments.length = 0; }