rejectWith
can.Deferred.prototype.rejectWith
Reject a Deferred in a particular context.
deferred.rejectWith(context[, arguments])
Parameters
-
context
{Object}Context passed to the
failCallbacksas thethisobject. -
arguments
{Array}OptionalArray of arguments that are passed to the
failCallback(s).
deferred.rejectWith(context, arguments)rejects a Deferred and calls thefailCallbackswith the given arguments.