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