src/virtual-scrolling-tree/VirtualScrollingTree.js
function collapseItem(data) {
    let parentExpansions = findExpansion.call(this, data.parent).expansions;

    let index = parentExpansions.findIndex((expansion) => {
        return expansion.id === data.id;
    });

    parentExpansions.splice(index, 1);
}
function collapseItem(data) {
    let parentExpansions = findExpansion.call(this, data.parent).expansions;

    let index = parentExpansions.findIndex((expansion) => {
        return expansion.id === data.id;
    });

    parentExpansions.splice(index, 1);
}
function collapseItem ( data ) { let parentExpansions = findExpansion . call ( this , data . parent ) . expansions ; let index = parentExpansions . findIndex ( ( expansion ) => { return expansion . id === data . id ; } ) ; parentExpansions . splice ( index , 1 ) ; }
Removes item to list of expansions.

@method collapseItem
@private
@params {Object} data
Removes item to list of expansions .