correct boolean type
This commit is contained in:
parent
94a76b3f5c
commit
aee069d6f8
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue