docs: function destroy() {
                  this.onDestroy();
                  this.eventBus.clear();
                  while (this._events.length > 0) {
                      this._events.shift().remove();
                  }
  
                  while (this._globalEvents.length > 0) {
                      this._globalEvents.shift().remove();
                  }
  
                  _destroy(this.children);
  
                  if (this.elGroup !== undefined && this.el !== undefined) {
                      this.elGroup.delete(this.el);
                  }
                  if (this.root && this.root.remove) {
                      this.root.remove();
                  }
  
                  delete this.el;
              }