aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.js')
-rw-r--r--src/text.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.js b/src/text.js
index 985fcbc..ecd8811 100644
--- a/src/text.js
+++ b/src/text.js
@@ -22,7 +22,7 @@ SVG.extend(SVG.Text, {
var index, length, tspan,
style = this._style(),
- parent = this.parentDoc(),
+ parent = this.doc(),
lines = text.split("\n"),
size = this.style['font-size'];