processQueue( type ) {
        const filterFn = NEXT_TRANSITION === type ?
            item => NEXT_TRANSITION === item.type : item => NEXT_HANDLER === item.type;

        let toProcess = [];

        let counter = -1,
            length = this.eventQueue.length,
            index = 0,
            item;
        while ( ++counter < length ) {
            item = this.eventQueue[ counter - index ];
            if ( filterFn( item ) ) {
                toProcess.push( this.eventQueue.splice( counter - index++ )[ 0 ] );
            }
        }

        toProcess.forEach( item => {
            this.handle( ...item.args );
        } );
    }
/**
     * Process events queue by type
     * @param {String} type
     */
Process events queue by type
@param {String} type
Process events queue by type @param { String } type
processQueue( type ) {
        const filterFn = NEXT_TRANSITION === type ?
            item => NEXT_TRANSITION === item.type : item => NEXT_HANDLER === item.type;
        let toProcess = [];
        let counter = -1,
            length = this.eventQueue.length,
            index = 0,
            item;
        while ( ++counter < length ) {
            item = this.eventQueue[ counter - index ];
            if ( filterFn( item ) ) {
                toProcess.push( this.eventQueue.splice( counter - index++ )[ 0 ] );
            }
        }
        toProcess.forEach( item => {
            this.handle( ...item.args );
        } );
    }
processQueue ( type ) { const filterFn = NEXT_TRANSITION === type ? item => NEXT_TRANSITION === item . type : item => NEXT_HANDLER === item . type ; let toProcess = [ ] ; let counter = - 1 , length = this . eventQueue . length , index = 0 , item ; while ( ++ counter < length ) { item = this . eventQueue [ counter - index ] ; if ( filterFn ( item ) ) { toProcess . push ( this . eventQueue . splice ( counter - index ++ ) [ 0 ] ) ; } } toProcess . forEach ( item => { this . handle ( ... item . args ) ; } ) ; }
Process events queue by type
 @param {String} type
Process events queue by type @param { String } type