jQsafi / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Complement to isLastSibling() #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Yes, I know it's not that difficult to check if a node is children[0], but 
it complements the isLastSibling() function.

isFirstSibling: function() {
    var p = this.parent;
    if ( !p ) return true;
    return p.childList[0] === this;
}

Original issue reported on code.google.com by google....@bsllc.nospam.as on 22 Jan 2010 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 24 Jan 2010 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 14 Nov 2010 at 2:17

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19