Skip to content
Snippets Groups Projects
Verified Commit fb60e229 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: lint code

parent 2ce52a61
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment