From 10acb5281d2fbcf19f4a2c7a325c2fc95dccccbd Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 7 Apr 2013 15:36:30 +0100 Subject: Fix for leading method on non text elements --- src/element.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3