   setupEventListeners: ->
     for elementListeners in @listeners
       elementListeners.element.addEventListener event, listener, false for event, listener of elementListeners.events
-      
+
 
   # Deactivates all listeners stored in @listeners
   removeEventListeners: ->

      "X-Requested-With": "XMLHttpRequest",

    extend headers, @options.headers if @options.headers
      
    xhr.setRequestHeader headerName, headerValue for headerName, headerValue of headers

    formData = new FormData()


    # Backwards compatibility
    if @options.acceptedMimeTypes
      @options.acceptedFiles = @options.acceptedMimeTypes
      delete @options.acceptedMimeTypes

    @options.method = @options.method.toUpperCase()
