Fix broken forms

This commit is contained in:
Pavel Dohnal
2019-01-23 17:12:49 +01:00
parent fb7095d3af
commit 3128da45b3

View File

@@ -1,3 +1,4 @@
/* eslint no-restricted-globals: 0 */
define(
[
'jquery'
@@ -79,7 +80,7 @@ define(
for (; i <= keysLast; i += 1) {
key = keys[i] === '' ? cur.length : keys[i];
cur[key] = i < keysLast
? cur[key] || (keys[i + 1] && Number.isNaN(keys[i + 1]) ? {} : [])
? cur[key] || (keys[i + 1] && isNaN(keys[i + 1]) ? {} : [])
: val;
cur = cur[key];
}