diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/element.js | 4 |
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) |