function (page) {
            var parents = scope.tree.pathToIdArray(page.path);
            return parents[ parents.length - 1 ];
        }
function (page) {
            var parents = scope.tree.pathToIdArray(page.path);
            return parents[ parents.length - 1 ];
        }
function ( page ) { var parents = scope . tree . pathToIdArray ( page . path ) ; return parents [ parents . length - 1 ] ; }
Get a page object by parent id *
Get a page object by parent id *