From: Alan Knowles Date: Wed, 25 Sep 2019 05:00:22 +0000 (+0800) Subject: Roo/form/BasicForm.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=391d5a83691325688b878d9a2f337ad736ccefe7 Roo/form/BasicForm.js --- 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; }