nl_tokens: @module lib / allParentsIds Returns all parents of the passed container minus the root .
pl_tokens: function allParentsIds ( context , container , parents ) { var isLeaf = parents === undefined ; parents = parents || [ ] ; // doing this before pushing skips the root if ( ! container . containedBy || container . containedBy === container . id ) { return parents ; } if ( ! isLeaf ) { parents . <mask> ( container . id ) ; } // let's order them by tree order return allParentsIds ( context , context . topology . containers [ container . containedBy ] , parents ) ; }