summaryrefslogtreecommitdiffstats
path: root/src/circle.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/circle.js')
-rw-r--r--src/circle.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/circle.js b/src/circle.js
index d1f2cdc..059813e 100644
--- a/src/circle.js
+++ b/src/circle.js
@@ -27,8 +27,8 @@ SVG.extend(SVG.Circle, {
var r = this.attrs.r || 0;
return this.attr({
- cx: (x || ((this.attrs.x || 0) + r)),
- cy: (y || ((this.attrs.y || 0) + r))
+ cx: x || (this.attrs.x || 0) + r,
+ cy: y || (this.attrs.y || 0) + r
});
}