Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
fb60e229
Verified
Commit
fb60e229
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: lint code
parent
2ce52a61
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/dom/events.mjs
+3
-3
3 additions, 3 deletions
source/dom/events.mjs
source/i18n/translations.mjs
+1
-1
1 addition, 1 deletion
source/i18n/translations.mjs
with
4 additions
and
4 deletions
source/dom/events.mjs
+
3
−
3
View file @
fb60e229
...
@@ -14,7 +14,7 @@ export { fireEvent, fireCustomEvent, findTargetElementFromEvent };
...
@@ -14,7 +14,7 @@ export { fireEvent, fireCustomEvent, findTargetElementFromEvent };
/**
/**
* The function sends an event
* The function sends an event
*
*
* @param {
HTML
Element
|
HTMLCollection
|
NodeList} element
* @param {Element
| Node |
HTMLCollection
|
NodeList} element
* @param {string} type
* @param {string} type
* @return {void}
* @return {void}
* @license AGPLv3
* @license AGPLv3
...
@@ -55,8 +55,9 @@ function fireEvent(element, type) {
...
@@ -55,8 +55,9 @@ function fireEvent(element, type) {
/**
/**
* You can call the function via the monster namespace `new Monster.DOM.fireCustomEvent()`.
* You can call the function via the monster namespace `new Monster.DOM.fireCustomEvent()`.
*
*
* @param {
HTML
Element
|
HTMLCollection
|
NodeList} element
* @param {Element
| Node |
HTMLCollection
|
NodeList} element
* @param {string} type
* @param {string} type
* @param {object} detail
* @return {void}
* @return {void}
* @license AGPLv3
* @license AGPLv3
* @since 1.29.0
* @since 1.29.0
...
@@ -66,7 +67,6 @@ function fireEvent(element, type) {
...
@@ -66,7 +67,6 @@ function fireEvent(element, type) {
* @summary Construct and send and event
* @summary Construct and send and event
*/
*/
function
fireCustomEvent
(
element
,
type
,
detail
)
{
function
fireCustomEvent
(
element
,
type
,
detail
)
{
const
document
=
getDocument
();
if
(
element
instanceof
HTMLElement
)
{
if
(
element
instanceof
HTMLElement
)
{
if
(
!
isObject
(
detail
))
{
if
(
!
isObject
(
detail
))
{
...
...
This diff is collapsed.
Click to expand it.
source/i18n/translations.mjs
+
1
−
1
View file @
fb60e229
...
@@ -109,7 +109,7 @@ class Translations extends Base {
...
@@ -109,7 +109,7 @@ class Translations extends Base {
if
(
count
===
0
)
{
if
(
count
===
0
)
{
// special handling for zero count
// special handling for zero count
if
(
r
.
hasOwnProperty
(
"
zero
"
))
{
if
(
r
.
hasOwnProperty
(
"
zero
"
))
{
return
validateString
(
r
[
"
zero
"
]
);
return
validateString
(
r
?.
zero
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment