funcunit
Version:
<!-- @hide title
22 lines (13 loc) • 435 B
Markdown
can.List.prototype.isRejected
can.List.plugins.promise
`list.isRejected()`
Returns if the [can.List::state state] of the list is rejected.
{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");