From 391d5a83691325688b878d9a2f337ad736ccefe7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 25 Sep 2019 13:00:22 +0800 Subject: [PATCH] Roo/form/BasicForm.js --- Roo/form/BasicForm.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Roo/form/BasicForm.js b/Roo/form/BasicForm.js index aedec7e3b4..3e2d779534 100644 --- a/Roo/form/BasicForm.js +++ b/Roo/form/BasicForm.js @@ -542,11 +542,10 @@ clientValidation Boolean Applies to submit only. Pass true to call fo if (typeof(FormData) != 'undefined' && asString !== true) { var fd = (new FormData(this.el.dom)).entries(); var ret = {}; - while (pair = fd.next()) { - if (pair.done) { - break; - } - ret[pair.value[0]] = pair.value[1]; // not sure how this will handle duplicates.. + var ent = fd.next(); + while (!ent.done) { + ret[ent.value[0]] = ent.value[1]; // not sure how this will handle duplicates.. + ent = fd.next(); }; return ret; } -- 2.39.2