Roo/form/BasicForm.js
authorAlan Knowles <alan@roojs.com>
Wed, 25 Sep 2019 05:00:22 +0000 (13:00 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Sep 2019 05:00:22 +0000 (13:00 +0800)
Roo/form/BasicForm.js

index aedec7e..3e2d779 100644 (file)
@@ -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;
         }