destroy(all = false) {
    this.removeEventListeners();
    this.removeAllEvents();
    if (all) {
      this.teardown();
    }
  }
Removes all event listeners attached to this component.
@param {boolean} all - If all events should be removed, including external events.