mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
simplification...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fd0edaf437
commit
d59b62c39f
@ -2477,17 +2477,21 @@ var TaskActions = actions.Actions({
|
||||
config: {
|
||||
},
|
||||
|
||||
// actions that generate tasks...
|
||||
// tests...
|
||||
isTask: function(action){
|
||||
return !!this.getActionAttr(action, '__task__') },
|
||||
isSessionTask: function(action){
|
||||
return !!this.getActionAttr(action, '__session_task__') },
|
||||
|
||||
// list actions that generate tasks...
|
||||
//
|
||||
// XXX cache these???
|
||||
get taskActions(){
|
||||
return this.actions
|
||||
.filter(function(action){
|
||||
return !!this.getActionAttr(action, '__task__') }.bind(this)) },
|
||||
var test = this.isTask.bind(this)
|
||||
return this.actions.filter(test) },
|
||||
get sessionTaskActions(){
|
||||
return this.actions
|
||||
.filter(function(action){
|
||||
return !!this.getActionAttr(action, '__session_task__') }.bind(this)) },
|
||||
var test = this.isSessionTask.bind(this)
|
||||
return this.actions.filter(test) },
|
||||
|
||||
// task manager...
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user