diff options
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js index 6e1bbf4..7db5ce6 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -76,9 +76,9 @@ SVG.extend(SVG.Element, SVG.FX, { SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.Gradient, SVG.FX, { // Add x and y radius radius: function(x, y) { - var type = (this.target || this).type; + var type = (this._target || this).type; return type == 'radial' || type == 'circle' ? - this.attr({ 'r': new SVG.Number(x) }) : + this.attr('r', new SVG.Number(x)) : this.rx(x).ry(y == null ? x : y) } }) |