mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +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: {
|
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???
|
// XXX cache these???
|
||||||
get taskActions(){
|
get taskActions(){
|
||||||
return this.actions
|
var test = this.isTask.bind(this)
|
||||||
.filter(function(action){
|
return this.actions.filter(test) },
|
||||||
return !!this.getActionAttr(action, '__task__') }.bind(this)) },
|
|
||||||
get sessionTaskActions(){
|
get sessionTaskActions(){
|
||||||
return this.actions
|
var test = this.isSessionTask.bind(this)
|
||||||
.filter(function(action){
|
return this.actions.filter(test) },
|
||||||
return !!this.getActionAttr(action, '__session_task__') }.bind(this)) },
|
|
||||||
|
|
||||||
// task manager...
|
// task manager...
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user