yui/yui3 — pull request #785 by rgrove (2013-05-28 20:11:22+00:00)
Title: Add Tree.Node#depth()

Tiny last-minute feature!

`Tree.Node#depth()` returns the depth of a node in the tree. The root node is 0. A child of the root is 1. A child of a child is 2, and so on. Unattached nodes have a depth of 0.