braincrafted/bootstrap-bundle — pull request #249 by bkosborne (2014-06-12 12:41:00+00:00)
Title: Add nav class based on depth not parent

The nav class should be added when the current depth is 0, meaning when the item is the first to be rendered. The previous way checked if the item had a parent. But this would screw up rendering if the user wanted to render just a subset of the tree, because that item would always have a parent but should be rendered with the nav class.