diff options
Diffstat (limited to 'src/path.js')
-rw-r--r-- | src/path.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.js b/src/path.js index 4faf174..27c28b3 100644 --- a/src/path.js +++ b/src/path.js @@ -11,12 +11,12 @@ SVG.extend(SVG.Path, { // set path data plot: function(d) { - return this.attr('d', d); + return this.attr('d', d || 'M0,0L0,0'); }, // move path using translate move: function(x, y) { - return this.transform('translate(' + x + ',' + y + ')'); + return this.transform({ x: x, y: y }); } });
\ No newline at end of file |