can.List.prototype.isRejected

  • function
 

list.isRejected()

Returns if the state of the list is rejected.

Returns

{Boolean}

true if the list is rejected. false if otherwise.

Use

var data = new can.Deferred();
var list = new can.List(data);

list.fail(function(){
    list.isRejected() //-> true
})

data.reject("epic fail");