API Docs for: 1.0 pre
Show:

Ember.Deferred Class

Item Index

Methods

Methods

reject

()

Reject a Deferred object and call any failCallbacks with the given args.

resolve

()

Resolve a Deferred object and call any doneCallbacks with the given args.

then

(
  • resolve
  • reject
)

Add handlers to be called when the Deferred object is resolved or rejected.

Parameters:

  • resolve Function

    a callback function to be called when done

  • reject Function

    a callback function to be called when failed