aboutsummaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar.js')
-rw-r--r--src/sugar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js
index e577ea7..d58c6c8 100644
--- a/src/sugar.js
+++ b/src/sugar.js
@@ -82,7 +82,7 @@ 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;
- return type == 'radial' || type == 'circle' ?
+ return type == 'radialGradient' || type == 'radialGradient' ?
this.attr('r', new SVG.Number(x)) :
this.rx(x).ry(y == null ? x : y)
}
@@ -95,7 +95,7 @@ SVG.extend(SVG.Path, {
}
// Get point at length
, pointAt: function(length) {
- return this.node.getPointAtLength(length)
+ return new SVG.Point(this.node.getPointAtLength(length))
}
})