function dispatchEvent(target, type, detail) {
    var event = new _customEvent2.default(type, {
        bubbles: true,
        cancelable: true,
        detail: detail
    });

    target.dispatchEvent(event);
}
dispatch custom events

@param  {element} el         slideshow element
@param  {string}  type       custom event name
@param  {object}  detail     custom detail information