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