fix show for numbers and other non-object types
This commit is contained in:
parent
e6f83075d0
commit
a6c96ebf6b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ Elm.Native.Show.make = function(elm) {
|
|||
return v ? "True" : "False";
|
||||
} else if (type === "number") {
|
||||
return v+"";
|
||||
} else if (v.isChar && v instanceof String) {
|
||||
} else if ((v instanceof String) && v.isChar) {
|
||||
return "'" + addSlashes(v) + "'";
|
||||
} else if (type === "string") {
|
||||
return '"' + addSlashes(v) + '"';
|
||||
|
|
Loading…
Reference in a new issue