code: function(type) {
          var listeners = this.__getEventListener(type);
  
          if (this['on' + type]) {
              this['on' + type]();
          }
  
          for (var i = 0; i < listeners.length; i++) {
              listeners[i].call(this);
          }
      }
docs: 派发事件