From 1ae730fec364f70d4541f38930929607dc2a31ac Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 23 Dec 2012 11:52:07 +0100 Subject: Fixed a bug in safari prevending correct dy on tspans --- src/arrange.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/arrange.js') diff --git a/src/arrange.js b/src/arrange.js index b5dc41a..001da75 100644 --- a/src/arrange.js +++ b/src/arrange.js @@ -4,20 +4,20 @@ SVG.extend(SVG.Element, { // get all siblings, including me siblings: function() { - return this.mother().children(); + return this.parent.children(); }, // send given element one step forwards forward: function() { var i = this.siblings().indexOf(this); - this.mother().remove(this).add(this, i + 1); + this.parent.remove(this).add(this, i + 1); return this; }, // send given element one step backwards backward: function() { - var i, p = this.mother().levelDefs(); + var i, p = this.parent.level(); i = this.siblings().indexOf(this); @@ -29,14 +29,14 @@ SVG.extend(SVG.Element, { // send given element all the way to the front front: function() { - this.mother().remove(this).add(this); + this.parent.remove(this).add(this); return this; }, // send given element all the way to the back back: function() { - var i, p = this.mother().levelDefs(); + var i, p = this.parent.level(); i = this.siblings().indexOf(this); -- cgit v1.2.3