   notify: (args...) ->
     @notifyWith(root, args...)
     this
-  
+
   ###
   Notify progress callbacks with additional context. Works the same way as notify(),
   except this is set to context when calling the functions.

  ###
  state: ->
    @_state
  
  ###
  Convenience function to specify each done, fail and progress callbacks at the same time.
  ###

    @_progressCallbacks or= []
    @_progressCallbacks.push(functions...)
    this

  ###
  Returns the promise object of this Deferred.
  ###
  promise: ->
    @_promise or= new Promise(this)

  ###
  Reject this Deferred. If the object has already been rejected or resolved,
  nothing happens. Parameters passed to reject will be handed to all current
