resolve

  • function
can.Deferred.prototype.resolve  

Resolve a Deferred.

deferred.resolve([argument])

Parameters

  1. argument {Object}Optional

    The argument to call the doneCallback with.

deferred.resolve( args ) resolves a Deferred object and calls the done callbacks with the given arguments.

var def = can.Deferred();
def.resolve({ animals: [ 'pig', 'cow' ] })