   # Individual callbacks have to be called in the appropriate sections.
   finished: (file, responseText, e) ->
     @files.processing = without(@files.processing, file)
+    file.processing = no
     @emit "success", file, responseText, e
     @emit "finished", file, responseText, e # For backwards compatibility
     @emit "complete", file

  # Loads the file, then calls finishedLoading()
  processFile: (file) ->
    @files.processing.push file

    @emit "processingfile", file


  # Individual callbacks have to be called in the appropriate sections.
  errorProcessing: (file, message) ->
    @files.processing = without(@files.processing, file)
    file.processing = no
    @emit "error", file, message
    @emit "complete", file
    @processQueue()
