Make the fix from #435
This commit is contained in:
parent
2a0a0e6e3c
commit
e2aff93df9
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Elm.Native.JavaScript.make = function(elm) {
|
||||||
|
|
||||||
function toJS(v) {
|
function toJS(v) {
|
||||||
var type = typeof 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) {
|
if (type === 'object' && '_' in v) {
|
||||||
var obj = {};
|
var obj = {};
|
||||||
for (var k in v) {
|
for (var k in v) {
|
||||||
|
|
Loading…
Reference in a new issue