diff options
Diffstat (limited to 'src/arrange.js')
-rw-r--r-- | src/arrange.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/arrange.js b/src/arrange.js index d7fcb5f..b5dc41a 100644 --- a/src/arrange.js +++ b/src/arrange.js @@ -17,9 +17,7 @@ SVG.extend(SVG.Element, { // send given element one step backwards backward: function() { - var i, p = this.mother(); - - p.levelDefs(); + var i, p = this.mother().levelDefs(); i = this.siblings().indexOf(this); @@ -38,9 +36,7 @@ SVG.extend(SVG.Element, { // send given element all the way to the back back: function() { - var i, p = this.mother(); - - p.levelDefs(); + var i, p = this.mother().levelDefs(); i = this.siblings().indexOf(this); |