summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index 9f6304f..d118ed7 100644
--- a/src/element.js
+++ b/src/element.js
@@ -141,7 +141,7 @@ SVG.extend(SVG.Element, {
} else {
/* treat x differently on text elements */
- if (a == 'x' && this instanceof SVG.Text)
+ if (a == 'x' && Array.isArray(this.lines))
for (n = this.lines.length - 1; n >= 0; n--)
this.lines[n].attr(a, v)