nl_tokens: Recursively delete a tree item and all its children
pl_tokens: function ( tId , partialTree ) { if ( tId === void 0 ) { tId = '' ; } if ( partialTree === void 0 ) { partialTree = tree ; } if ( ! tId ) { return false ; } var found = false ; partialTree . some ( function ( treeItem , i ) { if ( treeItem [ <mask> ] === tId ) { partialTree . splice ( i , 1 ) ; found = true ; return true ; } found = treeItem [ children ] ? deleteTreeItem ( tId , treeItem [ children ] ) : false ; if ( found && treeItem [ children ] . length === 0 ) { delete treeItem [ children ] ; delete treeItem [ opts . isOpen ] ; } return found ; } ) ; return found ; }