 
       if iframeBody.className is "error"
         options.error?(response)
+        dfd.reject(response)
       else
         options.success?(response)
+        dfd.resolve(response)
 
       $iframe.remove()
       $form.remove()

          $orig = $(attr)
          $orig.after($orig.clone(true))
          attr
        else if not _.isEmpty(attr) and (_.isArray(attr) or typeof attr is 'object')
          toForm(attr, key)
        else if not "#{key}".match(/^_/) and attr? and typeof attr isnt 'object' and typeof attr isnt 'function'
          $el = $ "<input/>",
            name: key
            value: attr

    $iframe[0].onload = callback

    $form[0].submit()
    dfd

  Backbone.sync = (method, model, options) ->
    if options?.multipart
