removeEventListener(id) {
    if (!this.eventListenerIdToEventName_.has(id)) return false;
    let eventName = this.eventListenerIdToEventName_.get(id);
    this.eventListenerIdToEventName_.delete(id);
    // This shouldn't happen, but lets check anyway.
    if (!this.eventListeners_.has(eventName)) return false;
    return this.eventListeners_.get(eventName).delete(id);
  }
/**
   * Removes an event listener previously added by
   * <code>addEventListener</code>.
   *
   * @param {number} id The id of the event listener to remove.
   * @return {boolean} Whether the event listener was actually removed.
   */
Removes an event listener previously added by
addEventListener.

@param {number} id The id of the event listener to remove.
@return {boolean} Whether the event listener was actually removed.
Removes an event listener previously added by addEventListener . @param { number } id The id of the event listener to remove . @return { boolean } Whether the event listener was actually removed .
removeEventListener(id) {
    if (!this.eventListenerIdToEventName_.has(id)) return false;
    let eventName = this.eventListenerIdToEventName_.get(id);
    this.eventListenerIdToEventName_.delete(id);
    if (!this.eventListeners_.has(eventName)) return false;
    return this.eventListeners_.get(eventName).delete(id);
  }
removeEventListener ( id ) { if ( ! this . eventListenerIdToEventName_ . has ( id ) ) return false ; let eventName = this . eventListenerIdToEventName_ . get ( id ) ; this . eventListenerIdToEventName_ . delete ( id ) ; if ( ! this . eventListeners_ . has ( eventName ) ) return false ; return this . eventListeners_ . get ( eventName ) . delete ( id ) ; }
Removes an event listener previously added by
 <code>addEventListener</code>.
Removes an event listener previously added by <code > addEventListener< / code > .
// This shouldn't happen, but lets check anyway.