fix show for numbers and other non-object types

This commit is contained in:
Evan Czaplicki 2013-10-24 15:02:29 +02:00
parent e6f83075d0
commit a6c96ebf6b

View file

@ -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) + '"';