summaryrefslogtreecommitdiffstats
path: root/src/arrange.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/arrange.js')
-rwxr-xr-xsrc/arrange.js4
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() {