getListeners(type) {
    return (this.listeners_ && this.listeners_[type]) || undefined;
  }
Get the listeners for a specified event type. Listeners are returned in the
order that they will be called in.

@param {string} type Type.
@return {Array<import("../events.js").Listener>|undefined} Listeners.