diff options
Diffstat (limited to 'src/modules/core/poly.js')
-rw-r--r-- | src/modules/core/poly.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/core/poly.js b/src/modules/core/poly.js index d96d1bc..d422028 100644 --- a/src/modules/core/poly.js +++ b/src/modules/core/poly.js @@ -19,9 +19,11 @@ export function move (x, y) { // Plot new path export function plot (p) { - return (p == null) ? this.array() - : this.clear().attr('points', typeof p === 'string' ? p - : (this._array = new PointArray(p))) + return (p == null) + ? this.array() + : this.clear().attr('points', typeof p === 'string' + ? p + : (this._array = new PointArray(p))) } // Set element size to given width and height |