From 8c81fb7c2e6e9842570d27a84b1a1c600c82c16b Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Thu, 8 Nov 2018 16:06:39 +0100 Subject: added possibility to pass attribues into a constructor like: `new SVG.Rect({width:100})` --- src/elements/Circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elements/Circle.js') diff --git a/src/elements/Circle.js b/src/elements/Circle.js index 52aaa3d..2f0d7f2 100644 --- a/src/elements/Circle.js +++ b/src/elements/Circle.js @@ -6,7 +6,7 @@ import Shape from './Shape.js' export default class Circle extends Shape { constructor (node) { - super(nodeOrNew('circle', node), Circle) + super(nodeOrNew('circle', node), node) } radius (r) { -- cgit v1.2.3