diff options
author | wout <wout@impinc.co.uk> | 2012-12-23 11:52:07 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-23 11:52:07 +0100 |
commit | 1ae730fec364f70d4541f38930929607dc2a31ac (patch) | |
tree | 16630efcc4b3ce6a09454681141518a05e4acde4 /src/arrange.js | |
parent | 70394584bec59f0b01998b9b54479bb913b0b32a (diff) | |
download | svg.js-1ae730fec364f70d4541f38930929607dc2a31ac.tar.gz svg.js-1ae730fec364f70d4541f38930929607dc2a31ac.zip |
Fixed a bug in safari prevending correct dy on tspans
Diffstat (limited to 'src/arrange.js')
-rw-r--r-- | src/arrange.js | 10 |
1 files changed, 5 insertions, 5 deletions
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); |