src/widgets/models/slot.js
function () {
    var filter = this.collection.parent.filter;
    if (!filter || !this.isFilled) {
      return false;
    }

    filter.releaseDataFilter();
    if (this.type === 'partition') {
      var partition = filter.partitions.get(this.rank, 'rank');
      filter.partitions.remove(partition);
    } else if (this.type === 'aggregate') {
      var aggregate = filter.aggregates.get(this.rank, 'rank');
      filter.aggregates.remove(aggregate);
    }
    this.isFilled = false;
    return true;
  }
function () {
    var filter = this.collection.parent.filter;
    if (!filter || !this.isFilled) {
      return false;
    }

    filter.releaseDataFilter();
    if (this.type === 'partition') {
      var partition = filter.partitions.get(this.rank, 'rank');
      filter.partitions.remove(partition);
    } else if (this.type === 'aggregate') {
      var aggregate = filter.aggregates.get(this.rank, 'rank');
      filter.aggregates.remove(aggregate);
    }
    this.isFilled = false;
    return true;
  }
function ( ) { var filter = this . collection . parent . filter ; if ( ! filter || ! this . isFilled ) { return false ; } filter . releaseDataFilter ( ) ; if ( this . type === 'partition' ) { var partition = filter . partitions . get ( this . rank , 'rank' ) ; filter . partitions . remove ( partition ) ; } else if ( this . type === 'aggregate' ) { var aggregate = filter . aggregates . get ( this . rank , 'rank' ) ; filter . aggregates . remove ( aggregate ) ; } this . isFilled = false ; return true ; }
Remove facet from the slot
@returns {boolean} succes True if something was removed
Remove facet from the slot