code: function fireEvent(element, name, data) {
      if (data === void 0) { data = {}; }
      var event = new CustomEvent(name, {
          detail: data,
          bubbles: true
      });
      element.dispatchEvent(event);
      return event;
  }
docs: 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