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/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elements/Text.js') diff --git a/src/elements/Text.js b/src/elements/Text.js index f221004..bd27428 100644 --- a/src/elements/Text.js +++ b/src/elements/Text.js @@ -8,7 +8,7 @@ import * as textable from '../modules/core/textable.js' export default class Text extends Shape { // Initialize node constructor (node) { - super(nodeOrNew('text', node), Text) + super(nodeOrNew('text', node), node) this.dom.leading = new SVGNumber(1.3) // store leading value for rebuilding this._rebuild = true // enable automatic updating of dy values -- cgit v1.2.3