docs: function dispatchEvent(event) {
      var type = event.type;
      var listeners = this._eventListeners[type] || [];
  
      for (var i = 0; i < listeners.length; i++) {
        if (typeof listeners[i] == "function") {
          listeners[i].call(this, event);
        } else {
          listeners[i].handleEvent(event);
        }
      }
  
      return !!event.defaultPrevented;
    }