diff options
author | wout <wout@impinc.co.uk> | 2012-12-29 18:12:53 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-29 18:12:53 +0100 |
commit | 68367e494fcab754ae4833e64804a824032cf31c (patch) | |
tree | c9d5d9fe5995ccbbe819f29752c1133c7415882d /src/ellipse.js | |
parent | 52ed3ba98715ed3c63e74ff29a9892972a7bec19 (diff) | |
download | svg.js-68367e494fcab754ae4833e64804a824032cf31c.tar.gz svg.js-68367e494fcab754ae4833e64804a824032cf31c.zip |
Code refactoring
Diffstat (limited to 'src/ellipse.js')
-rw-r--r-- | src/ellipse.js | 4 |
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) }); } |