summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-04-02 21:44:12 +0100
committerwout <wout@impinc.co.uk>2013-04-02 21:44:12 +0100
commit263045bfcd7ce021c5e8f4a5c283929675f85583 (patch)
tree8569bb53492306398abea26d18c3c455b857624d /src/element.js
parentf5f60d2383c99667849167af51aaf7734c678ca6 (diff)
downloadsvg.js-263045bfcd7ce021c5e8f4a5c283929675f85583.tar.gz
svg.js-263045bfcd7ce021c5e8f4a5c283929675f85583.zip
Extendibility fix in SVG.Element
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)