diff options
author | wout <wout@impinc.co.uk> | 2013-04-02 21:44:12 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-04-02 21:44:12 +0100 |
commit | 263045bfcd7ce021c5e8f4a5c283929675f85583 (patch) | |
tree | 8569bb53492306398abea26d18c3c455b857624d /src/element.js | |
parent | f5f60d2383c99667849167af51aaf7734c678ca6 (diff) | |
download | svg.js-263045bfcd7ce021c5e8f4a5c283929675f85583.tar.gz svg.js-263045bfcd7ce021c5e8f4a5c283929675f85583.zip |
Extendibility fix in SVG.Element
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 2 |
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) |