Skip to content

Commit 28c8ded

Browse files
committed
fixes svgdotjs#396
1 parent c271f48 commit 28c8ded

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/svg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @copyright Wout Fierens <wout@impinc.co.uk>
77
* @license MIT
88
*
9-
* BUILT: Wed Nov 04 2015 02:42:46 GMT+0100 (Mitteleuropäische Zeit)
9+
* BUILT: Wed Nov 04 2015 10:50:41 GMT+0100 (Mitteleuropäische Zeit)
1010
*/;
1111
(function(root, factory) {
1212
if (typeof define === 'function' && define.amd) {
@@ -3647,7 +3647,7 @@ SVG.extend(SVG.Text, SVG.Tspan, {
36473647
}
36483648
// Create a tspan
36493649
, tspan: function(text) {
3650-
var node = (this.textPath() || this).node
3650+
var node = (this.textPath && this.textPath() || this).node
36513651
, tspan = new SVG.Tspan
36523652

36533653
// clear if build mode is disabled
@@ -3661,7 +3661,7 @@ SVG.extend(SVG.Text, SVG.Tspan, {
36613661
}
36623662
// Clear all lines
36633663
, clear: function() {
3664-
var node = (this.textPath() || this).node
3664+
var node = (this.textPath && this.textPath() || this).node
36653665

36663666
// remove existing child nodes
36673667
while (node.hasChildNodes())

0 commit comments

Comments
 (0)