onemit.js
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();
    }
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();
    }
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 ( ) ; }
Event constructor.

@param (Object) props - { type: "eventName", ... } or just "eventName"
Event constructor .