@schukai/monster 3.57.0 → 3.58.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ export { fireEvent, fireCustomEvent, findTargetElementFromEvent };
14
14
  /**
15
15
  * The function sends an event
16
16
  *
17
- * @param {HTMLElement|HTMLCollection|NodeList} element
17
+ * @param {Element | Node | HTMLCollection | NodeList} element
18
18
  * @param {string} type
19
19
  * @return {void}
20
20
  * @license AGPLv3
@@ -55,8 +55,9 @@ function fireEvent(element, type) {
55
55
  /**
56
56
  * You can call the function via the monster namespace `new Monster.DOM.fireCustomEvent()`.
57
57
  *
58
- * @param {HTMLElement|HTMLCollection|NodeList} element
58
+ * @param {Element | Node | HTMLCollection | NodeList} element
59
59
  * @param {string} type
60
+ * @param {object} detail
60
61
  * @return {void}
61
62
  * @license AGPLv3
62
63
  * @since 1.29.0
@@ -66,7 +67,6 @@ function fireEvent(element, type) {
66
67
  * @summary Construct and send and event
67
68
  */
68
69
  function fireCustomEvent(element, type, detail) {
69
- const document = getDocument();
70
70
 
71
71
  if (element instanceof HTMLElement) {
72
72
  if (!isObject(detail)) {