From 67d367e0d74b3287956130da0077e42c6483dd2f Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 24 Mar 2013 19:19:06 +0100 Subject: Bumped to v0.11 - removed SVG.Wrap on SVG.Polyline, SVG.Polygon and SVG.Path - added delay on SVG.FX module - made x(), y(), cx() and cy() as getters - added SGB.get() method, to get elements by a DOM id - fixed bug in remove() method on container elements - added jasmine test suite to repo --- src/group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/group.js') 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() { -- cgit v1.2.3