roojs-ui.js
[roojs1] / Roo / form / BasicForm.js
index 6ef02c7..4904b46 100644 (file)
@@ -540,11 +540,11 @@ 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 = {}
-            for(var pair of formData.entries()) {
+            
+            var ret = {};
+            (new FormData(this.el.dom)).entries().forEach(function(pair) {
                 ret[pair[0]] = pair[1]; // not sure how this will handle duplicates..
-            }
+            });
             return ret;
         }