bebraw
10/9/2010 - 5:57 PM

index.js

Element.include({index: function() {
    return this.parent().children().indexOf(this);
}});