 
       if inputEnabled && input.name
         if (radioOrCheck && input.checked) || !radioOrCheck
-          formData = @formAppend(formData, input.name, input.value)
-
-    formData
+          callback(input)
 
   onSuccess: (ev) ->
     @opts.success?()


  uriEncodeForm: (form) ->
    formData = ""
    inputs = form.querySelectorAll("input:not([type='reset']):not([type='button']):not([type='submit']):not([type='image']), select, textarea")
    for input in inputs
      inputEnabled = !input.disabled


  createPayload: (form) ->
    if form
      if form.querySelectorAll("[type='file'][name]").length > 0
        formData = @nativeEncodeForm(form)
      else # for much smaller payloads
        formData = @uriEncodeForm(form)
    else
      formData = ''

