finish method

dynamic finish()

Implementation

finish() {
  // Clear references from inactive renderItems in the list

  for (var i = this.renderItemsIndex, il = this.renderItems.length;
      i < il;
      i++) {
    var renderItem = this.renderItems[i];

    if (renderItem.id == null) break;

    renderItem.id = null;
    renderItem.object = null;
    renderItem.geometry = null;
    renderItem.material = null;
    renderItem.program = null;
    renderItem.group = null;
  }
}