• function

done can.Deferred.prototype.done

 

Add a callback to be called when a Deferred is resolved.

deferred.done(doneCallback)

Parameters

  1. doneCallback {function()}

    A callback to be called when the Deferred is resolved.

deferred.done(doneCallback) adds handler(s) to be called when the Deferred object is resolved.

var def = can.Deferred();
def.done(function(){
    //- Deferred is done.
});