Skip to content

Commit e815cc4

Browse files
committed
Make TouchList a valid array type
1 parent 063aaf0 commit e815cc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Elm/Kernel/Json.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ function _Json_runArrayDecoder(decoder, value, toElmValue)
328328

329329
function _Json_isArray(value)
330330
{
331-
return Array.isArray(value) || (typeof FileList !== 'undefined' && value instanceof FileList);
331+
return Array.isArray(value)
332+
|| (typeof FileList !== 'undefined' && value instanceof FileList)
333+
|| (typeof TouchList !== 'undefined' && value instanceof TouchList);
332334
}
333335

334336
function _Json_toElmArray(array)

0 commit comments

Comments
 (0)