From e815cc439c57c6ec2ac62d4fb9142981aad1192c Mon Sep 17 00:00:00 2001 From: Albert Dahlin Date: Mon, 7 Jan 2019 18:56:07 +0100 Subject: [PATCH] Make TouchList a valid array type --- src/Elm/Kernel/Json.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Elm/Kernel/Json.js b/src/Elm/Kernel/Json.js index 5623c1d..0e30216 100644 --- a/src/Elm/Kernel/Json.js +++ b/src/Elm/Kernel/Json.js @@ -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)