summaryrefslogtreecommitdiffstats
path: root/src/elements/Line.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Line.js')
-rw-r--r--src/elements/Line.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Line.js b/src/elements/Line.js
index 0b7534b..146aa45 100644
--- a/src/elements/Line.js
+++ b/src/elements/Line.js
@@ -12,8 +12,8 @@ import * as pointed from '../modules/core/pointed.js'
export default class Line extends Shape {
// Initialize node
- constructor (node) {
- super(nodeOrNew('line', node), node)
+ constructor (node, attrs = node) {
+ super(nodeOrNew('line', node), attrs)
}
// Get array