Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a76b3
)
correct boolean type
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 13 Sep 2020 20:09:16 +0000
(22:09 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 13 Sep 2020 20:09:16 +0000
(22:09 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 1f65fa768810b887597351efaca45917742e6890..dad11929d3ba6f2c8ee5d12ba354d5b07f510ef3 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-85,7
+85,7
@@
/* cast from string to type */
if (type === "boolean") {
- value = (value
) ? true : false
;
+ value = (value
=== "true")
;
} else if (type === "number") {
value = Number(value);
} else if (type === "object") {