js/impress.js
function( el, eventName, detail ) {
            var event = document.createEvent( "CustomEvent" );
            event.initCustomEvent( eventName, true, true, detail );
            el.dispatchEvent( event );
        }
function( el, eventName, detail ) {
            var event = document.createEvent( "CustomEvent" );
            event.initCustomEvent( eventName, true, true, detail );
            el.dispatchEvent( event );
        }
function ( el , eventName , detail ) { var event = document . createEvent ( "CustomEvent" ) ; event . initCustomEvent ( eventName , true , true , detail ) ; el . dispatchEvent ( event ) ; }
`triggerEvent` builds a custom DOM event with given `eventName` and `detail` data and triggers it on element given as `el`.
triggerEvent builds a custom DOM event with given eventName and detail data and triggers it on element given as el .