Make the fix from #435

This commit is contained in:
Evan Czaplicki 2014-01-13 11:00:53 +01:00
parent 2a0a0e6e3c
commit e2aff93df9

View file

@ -34,7 +34,7 @@ Elm.Native.JavaScript.make = function(elm) {
function toJS(v) {
var type = typeof v;
if (type === 'number' || type === 'boolean') return v;
if (type === 'number' || type === 'boolean' || type === 'string') return v;
if (type === 'object' && '_' in v) {
var obj = {};
for (var k in v) {