aboutsummaryrefslogtreecommitdiffstats
path: root/src/ellipse.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-29 18:12:53 +0100
committerwout <wout@impinc.co.uk>2012-12-29 18:12:53 +0100
commit68367e494fcab754ae4833e64804a824032cf31c (patch)
treec9d5d9fe5995ccbbe819f29752c1133c7415882d /src/ellipse.js
parent52ed3ba98715ed3c63e74ff29a9892972a7bec19 (diff)
downloadsvg.js-68367e494fcab754ae4833e64804a824032cf31c.tar.gz
svg.js-68367e494fcab754ae4833e64804a824032cf31c.zip
Code refactoring
Diffstat (limited to 'src/ellipse.js')
-rw-r--r--src/ellipse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ellipse.js b/src/ellipse.js
index 6280792..018cd4f 100644
--- a/src/ellipse.js
+++ b/src/ellipse.js
@@ -27,8 +27,8 @@ SVG.extend(SVG.Ellipse, {
// position element by its center
center: function(x, y) {
return this.attr({
- cx: x || ((this.attrs.x || 0) + (this.attrs.rx || 0)),
- cy: y || ((this.attrs.y || 0) + (this.attrs.ry || 0))
+ cx: x || (this.attrs.x || 0) + (this.attrs.rx || 0),
+ cy: y || (this.attrs.y || 0) + (this.attrs.ry || 0)
});
}