diff options
Diffstat (limited to 'src/path.js')
-rw-r--r-- | src/path.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.js b/src/path.js index 55ac5fd..0c70a47 100644 --- a/src/path.js +++ b/src/path.js @@ -53,7 +53,7 @@ SVG.Path = SVG.invent({ // Create a wrapped path element path: function(d) { // make sure plot is called as a setter - return this.put(new SVG.Path).plot(d != null ? d : new SVG.PathArray) + return this.put(new SVG.Path).plot(d || new SVG.PathArray) } } }) |