aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Rect.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Rect.js')
-rw-r--r--src/elements/Rect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/Rect.js b/src/elements/Rect.js
index fa66fc3..7433993 100644
--- a/src/elements/Rect.js
+++ b/src/elements/Rect.js
@@ -6,7 +6,7 @@ import Shape from './Shape.js'
export default class Rect extends Shape {
// Initialize node
constructor (node) {
- super(nodeOrNew('rect', node), Rect)
+ super(nodeOrNew('rect', node), node)
}
}