summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-04-07 15:36:30 +0100
committerwout <wout@impinc.co.uk>2013-04-07 15:36:30 +0100
commit10acb5281d2fbcf19f4a2c7a325c2fc95dccccbd (patch)
tree140b41f0f9fa9dd981e9fe950d412fce52b44584 /src
parent3864ff14261506b9875ea7e19d30d378b304b146 (diff)
downloadsvg.js-10acb5281d2fbcf19f4a2c7a325c2fc95dccccbd.tar.gz
svg.js-10acb5281d2fbcf19f4a2c7a325c2fc95dccccbd.zip
Fix for leading method on non text elements
Diffstat (limited to 'src')
-rw-r--r--src/element.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element.js b/src/element.js
index d118ed7..bad57fa 100644
--- a/src/element.js
+++ b/src/element.js
@@ -122,7 +122,7 @@ SVG.extend(SVG.Element, {
if (this._isStyle(a)) {
return a == 'text' ?
this.content :
- a == 'leading' ?
+ a == 'leading' && this.leading ?
this.leading() :
this.style(a)
@@ -164,7 +164,7 @@ SVG.extend(SVG.Element, {
if (this._isStyle(a)) {
a == 'text' ?
this.text(v) :
- a == 'leading' ?
+ a == 'leading' && this.leading ?
this.leading(v) :
this.style(a, v)