Skip to content

Instantly share code, notes, and snippets.

@workmanw
Forked from tritchey/tasks.js
Created Jul 22, 2011
Embed
What would you like to do?
filtering
ScaleUI.taskTagController = SC.ArrayController.create(
/** @scope ScaleUI.taskTagController.prototype */ {
queuedTasks: function() {
return content.filterProperty('state', TaskState.QUEUED);
}.property('@each.state').cacheable(),
runningTasks: function() {
return content.filterProperty('state', TaskState.RUNNING);
}.property('@each.state').cacheable(),
completeTasks: function() {
return content.filterProperty('state', TaskState.COMPLETE);
}.property('@each.state').cacheable(),
errorTasks: function() {
return content.filterProperty('state', TaskState.ERROR);
}.property('@each.state').cacheable()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment