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
c652a2bb
You need to sign in or sign up before continuing.
Verified
Commit
c652a2bb
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: #122
parent
ca4189a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/source/dom/util/init-options-from-attributes.mjs
+6
-2
6 additions, 2 deletions
application/source/dom/util/init-options-from-attributes.mjs
with
6 additions
and
2 deletions
application/source/dom/util/init-options-from-attributes.mjs
+
6
−
2
View file @
c652a2bb
...
@@ -64,8 +64,12 @@ function initOptionsFromAttributes(element, options, mapping = {}, prefix = "dat
...
@@ -64,8 +64,12 @@ function initOptionsFromAttributes(element, options, mapping = {}, prefix = "dat
value
=
mapping
[
optionName
](
value
);
value
=
mapping
[
optionName
](
value
);
}
}
const
typeOfOptionValue
=
typeof
finder
.
getVia
(
optionName
);
const
optionValue
=
finder
.
getVia
(
optionName
);
if
(
typeOfOptionValue
===
"
boolean
"
)
{
const
typeOfOptionValue
=
typeof
optionValue
;
if
(
optionValue
===
null
||
optionValue
===
undefined
)
{
value
=
null
;
}
else
if
(
typeOfOptionValue
===
"
boolean
"
)
{
value
=
value
===
"
true
"
;
value
=
value
===
"
true
"
;
}
else
if
(
typeOfOptionValue
===
"
number
"
)
{
}
else
if
(
typeOfOptionValue
===
"
number
"
)
{
value
=
Number
(
value
);
value
=
Number
(
value
);
...
...
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