 
   _uploadFiles: (files) ->
     if @options.uploadFiles?
-      @options.uploadFiles(files)
-      return
+      return @options.uploadFiles(files)
 
     xhr = new XMLHttpRequest()
 

    formData.append @_getParamName(i), files[i], files[i].name for i in [0..files.length-1]

    xhr.send formData

  # Called internally when processing is finished.
  # Individual callbacks have to be called in the appropriate sections.

    # @options.url = @element.getAttribute "action" unless @options.url?
    @options.url = @element.getAttribute "action" unless @options.url?

    throw new Error "You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. " +
      "'acceptedMimeTypes' is deprecated." if @options.acceptedFiles and @options.acceptedMimeTypes

