dist/commonjs/common/events.js
function fireEvent(element, name, data) {
    if (data === void 0) { data = {}; }
    var event = new CustomEvent(name, {
        detail: data,
        bubbles: true
    });
    element.dispatchEvent(event);
    return event;
}
function fireEvent(element, name, data) {
    if (data === void 0) { data = {}; }
    var event = new CustomEvent(name, {
        detail: data,
        bubbles: true
    });
    element.dispatchEvent(event);
    return event;
}
function fireEvent ( element , name , data ) { if ( data === void 0 ) { data = { } ; } var event = new CustomEvent ( name , { detail : data , bubbles : true } ) ; element . dispatchEvent ( event ) ; return event ; }
Fire DOM event on an element
@param element The Element which the DOM event will be fired on
@param name The Event's name
@param data Addition data to attach to an event
Fire DOM event on an element