diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-11 01:07:59 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-11 01:07:59 +0200 |
commit | 843c0f5b0f7140c4d46d92293c2c18767d070f69 (patch) | |
tree | e123f0649d4ebe9bc6b37cd18da8aca4ab38142c /src/text.js | |
parent | d5f5dd18a6c9d986dd0582256e2120675e1ca561 (diff) | |
download | svg.js-843c0f5b0f7140c4d46d92293c2c18767d070f69.tar.gz svg.js-843c0f5b0f7140c4d46d92293c2c18767d070f69.zip |
Merged all changes and fixes from SVG 1.1 into this branch
Diffstat (limited to 'src/text.js')
-rwxr-xr-x | src/text.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/text.js b/src/text.js index d697681..389a670 100755 --- a/src/text.js +++ b/src/text.js @@ -200,10 +200,13 @@ SVG.extend(SVG.Text, SVG.Tspan, { if (this._build === false) this.clear() - // add new tspan and reference + // add new tspan node.appendChild(tspan.node) // only first level tspans are considered to be "lines" + // that doenst make sence. A line is added to a SVG.Set which is never used or returned. + // So why bother adding it? + // Also: lines() reads all children so it already has this tspan in it because we added it before if (this instanceof SVG.Text) this.lines().add(tspan) @@ -228,6 +231,3 @@ SVG.extend(SVG.Text, SVG.Tspan, { return this.node.getComputedTextLength() } }) - -// Register rebuild event -SVG.registerEvent('rebuild') |