Skip to content

Commit

Permalink
Make TouchList a valid array type
Browse files Browse the repository at this point in the history
  • Loading branch information
albertdahlin committed Jan 7, 2019
1 parent 658d429 commit c731b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Elm/Kernel/Json.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ function _Json_runArrayDecoder(decoder, value, toElmValue)

function _Json_isArray(value)
{
return Array.isArray(value) || (typeof FileList === 'function' && value instanceof FileList);
return Array.isArray(value)
|| (typeof FileList === 'function' && value instanceof FileList)
|| (typeof TouchList === 'function' && value instanceof TouchList);
}

function _Json_toElmArray(array)
Expand Down

0 comments on commit c731b39

Please sign in to comment.