- leaf=${pos >= len - 1},
- selected=${!leaf and crumbs.get(pos) == entry},
+ childs=${entry == parent ? null : _childs.get(entry)},
+ leaf=${pos == (len - 1) and (childs == null or childs.size() == 0)},
+ child=${pos == len},
+ selected=${!child and crumbs.get(pos) == entry},