can.List.prototype.fail
list.fail( failCallback )
Add handlers to be called when the list is rejected. This works very similar to jQuery's fail.
Parameters
-
failCallback
{function(reason)}
A function that is called when the list's promise is rejected. It will be called with the reason provided to
reject
.
Returns
{Promise}
The list's promise.
Use