From fb60e22915cc711c83bbc618004dcd4d5441a83c Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Sun, 17 Mar 2024 11:35:04 +0100
Subject: [PATCH] chore: lint code

---
 source/dom/events.mjs        | 6 +++---
 source/i18n/translations.mjs | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/dom/events.mjs b/source/dom/events.mjs
index 9125514d9..098a32f0b 100644
--- a/source/dom/events.mjs
+++ b/source/dom/events.mjs
@@ -14,7 +14,7 @@ export { fireEvent, fireCustomEvent, findTargetElementFromEvent };
 /**
  * The function sends an event
  *
- * @param {HTMLElement|HTMLCollection|NodeList} element
+ * @param {Element | Node | HTMLCollection | NodeList} element
  * @param {string} type
  * @return {void}
  * @license AGPLv3
@@ -55,8 +55,9 @@ function fireEvent(element, type) {
 /**
  * You can call the function via the monster namespace `new Monster.DOM.fireCustomEvent()`.
  *
- * @param {HTMLElement|HTMLCollection|NodeList} element
+ * @param {Element | Node | HTMLCollection | NodeList} element
  * @param {string} type
+ * @param {object} detail
  * @return {void}
  * @license AGPLv3
  * @since 1.29.0
@@ -66,7 +67,6 @@ function fireEvent(element, type) {
  * @summary Construct and send and event
  */
 function fireCustomEvent(element, type, detail) {
-	const document = getDocument();
 
 	if (element instanceof HTMLElement) {
 		if (!isObject(detail)) {
diff --git a/source/i18n/translations.mjs b/source/i18n/translations.mjs
index fa28af39f..f0fae3f1a 100644
--- a/source/i18n/translations.mjs
+++ b/source/i18n/translations.mjs
@@ -109,7 +109,7 @@ class Translations extends Base {
 			if (count === 0) {
 				// special handling for zero count
 				if (r.hasOwnProperty("zero")) {
-					return validateString(r["zero"]);
+					return validateString(r?.zero);
 				}
 			}
 
-- 
GitLab