summaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-19 13:44:52 +0100
committerwout <wout@impinc.co.uk>2012-12-19 13:44:52 +0100
commitdfa324f1cb9c562a198ad2f9909bbb8d44807936 (patch)
treefe84b03e7e7b60c1eb965244defc4bc86e41b222 /src/sugar.js
parentdab421143cf719370cb3739d07e3e411d555cf3c (diff)
downloadsvg.js-dfa324f1cb9c562a198ad2f9909bbb8d44807936.tar.gz
svg.js-dfa324f1cb9c562a198ad2f9909bbb8d44807936.zip
Updated readme
Diffstat (limited to 'src/sugar.js')
-rw-r--r--src/sugar.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sugar.js b/src/sugar.js
index a9e1458..dda1aa3 100644
--- a/src/sugar.js
+++ b/src/sugar.js
@@ -42,9 +42,7 @@ SVG.extend(SVG.Element, {
if (o.x == null) o.x = b.cx;
if (o.y == null) o.y = b.cy;
- this.transform('rotate(' + (o.deg || 0) + ' ' + o.x + ' ' + o.y + ')', o.absolute);
-
- return this;
+ return this.transform('rotate(' + (o.deg || 0) + ' ' + o.x + ' ' + o.y + ')', o.absolute);
}
});
@@ -54,9 +52,7 @@ SVG.extend(SVG.G, {
// move using translate
move: function(x, y) {
- this.transform('translate(' + x + ' ' + y + ')', true);
-
- return this;
+ return this.transform('translate(' + x + ' ' + y + ')', true);
}
});