aboutsummaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/group.js')
-rw-r--r--src/group.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group.js b/src/group.js
index a9f046f..f960391 100644
--- a/src/group.js
+++ b/src/group.js
@@ -8,11 +8,11 @@ SVG.G.prototype = new SVG.Container
SVG.extend(SVG.G, {
// Move over x-axis
x: function(x) {
- return this.transform('x', x)
+ return x == null ? this.trans.x : this.transform('x', x)
}
// Move over y-axis
, y: function(y) {
- return this.transform('y', y)
+ return y == null ? this.trans.y : this.transform('y', y)
}
// Get defs
, defs: function() {