roojs-ui.js
[roojs1] / roojs-ui-debug.js
index 73ae313..4256ded 100644 (file)
@@ -24909,11 +24909,13 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
         
         // use formdata
         if (typeof(FormData) != 'undefined' && asString !== true) {
-            var fd = new FormData(this.el.dom);
-            var ret = {}
-            formData.entries().forEach(function(pair) {
-                ret[pair[0]] = pair[1]; // not sure how this will handle duplicates..
-            });
+            var fd = (new FormData(this.el.dom)).entries();
+            var ret = {};
+            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;
         }