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 Aug 1, 2019
1 parent 063aaf0 commit e815cc4
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 !== 'undefined' && value instanceof FileList);
return Array.isArray(value)
|| (typeof FileList !== 'undefined' && value instanceof FileList)
|| (typeof TouchList !== 'undefined' && value instanceof TouchList);
}

function _Json_toElmArray(array)
Expand Down

0 comments on commit e815cc4

Please sign in to comment.