reject
can.Deferred.prototype.reject
Reject a Deferred.
deferred.reject([argument])
Parameters
-
argument
{Object}
OptionalThe argument to call the
failCallback
with.
Reject a Deferred.
{Object}
OptionalThe argument to call the failCallback
with.
deferred.reject(args)
rejects the Deferred object and calls the fail callbacks with the given arguments.