diff options
author | wout <wout@impinc.co.uk> | 2014-02-01 14:27:31 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-01 14:27:31 +0100 |
commit | f047e3c3aad7920df978a2dbc758a961112c9d43 (patch) | |
tree | d97689f6563aebd823d1190cc76809073da3a449 /src/arrange.js | |
parent | 745a0148c9de8c14367507eb21355604a42e84d5 (diff) | |
download | svg.js-f047e3c3aad7920df978a2dbc758a961112c9d43.tar.gz svg.js-f047e3c3aad7920df978a2dbc758a961112c9d43.zip |
Added index() method to SVG.Parent and SVG.Set
Diffstat (limited to 'src/arrange.js')
-rwxr-xr-x | src/arrange.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/arrange.js b/src/arrange.js index 0eb2830..a48ec5d 100755 --- a/src/arrange.js +++ b/src/arrange.js @@ -8,9 +8,7 @@ SVG.extend(SVG.Element, { } // Get the curent position siblings , position: function() { - var siblings = this.siblings() - - return siblings.indexOf(this) + return this.parent.index(this) } // Get the next element (will return null if there is none) , next: function() { |