.promise(type ,target)

Description: Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.

type – string, optional
The type of queue that needs to be observed.
target – object, optional
Object onto which the promise methods have to be attached.

See jQuery API for .promise(type ,target).