code: function EmitEvent(props) {
          const event = this;
          if ( !(event instanceof EmitEvent) ) {
              return new EmitEvent(props);
          }
          if ( props == undefined ) {
              props = '';
          }
          if ( typeof props == 'string' ) {
              props = { type: props };
          }
          _extend(event, props);
          event.timeStamp = Date.now();
      }
docs: Event constructor.
  
  @param (Object) props - { type: "eventName", ... } or just "eventName"