diff options
author | wout <wout@impinc.co.uk> | 2012-12-21 17:28:17 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-21 17:28:17 +0100 |
commit | 5e4f748abffe48305e3d112e683d71cbec5155b3 (patch) | |
tree | 3c283536ea906a9260946168f6ad7b3891aa4f58 /src/arrange.js | |
parent | b1516b2580dbdffd5ee68c75d4eb769b52faa100 (diff) | |
download | svg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.tar.gz svg.js-5e4f748abffe48305e3d112e683d71cbec5155b3.zip |
Streamlined code
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); |