From 75ad25b7eeb7fa95e6fed24b9350e58d0d85d930 Mon Sep 17 00:00:00 2001 From: i-e-b Date: Fri, 15 Nov 2013 15:58:16 +0000 Subject: [PATCH] Fix to Json Boolean native constructor --- libraries/Native/Json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Native/Json.js b/libraries/Native/Json.js index 20dbc30..b6f3e0d 100644 --- a/libraries/Native/Json.js +++ b/libraries/Native/Json.js @@ -41,7 +41,7 @@ Elm.Native.Json.make = function(elm) { switch (typeof v) { case 'string' : return { ctor:"String", _0: JS.toString(v) }; case 'number' : return { ctor:"Number", _0: JS.toFloat(v) }; - case 'boolean': return { ctor:"Bool" , _0: JS.toBool(v) }; + case 'boolean': return { ctor:"Boolean" , _0: JS.toBool(v) }; case 'object' : if (v === null) return { ctor:"Null" }; if (v instanceof Array) {