mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fixed issue...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9689707990
commit
17176f0aa3
@ -2843,11 +2843,13 @@ var TaskActions = actions.Actions({
|
|||||||
// list actions that generate tasks...
|
// list actions that generate tasks...
|
||||||
// XXX cache these???
|
// XXX cache these???
|
||||||
get taskActions(){
|
get taskActions(){
|
||||||
var test = this.isTask.bind(this)
|
return this.cache('taskActions', function(data){
|
||||||
return this.actions.filter(test) },
|
return data
|
||||||
|
|| this.actions.filter(this.isTask.bind(this)) }) },
|
||||||
get sessionTaskActions(){
|
get sessionTaskActions(){
|
||||||
var test = this.isSessionTask.bind(this)
|
return this.cache('sessionTaskActions', function(data){
|
||||||
return this.actions.filter(test) },
|
return data
|
||||||
|
|| this.actions.filter(this.isSessionTask.bind(this)) }) },
|
||||||
|
|
||||||
// task manager...
|
// task manager...
|
||||||
//
|
//
|
||||||
@ -2861,9 +2863,11 @@ var TaskActions = actions.Actions({
|
|||||||
// XXX need to get running tasks by action name...
|
// XXX need to get running tasks by action name...
|
||||||
get sessionTasks(){
|
get sessionTasks(){
|
||||||
//return this.tasks.titled(...this.sessionTaskActions) },
|
//return this.tasks.titled(...this.sessionTaskActions) },
|
||||||
return this.tasks
|
return this.cache('sessionTasks', function(data){
|
||||||
.filter(function(task){
|
return data
|
||||||
return task.__session_task__ }) },
|
|| this.tasks
|
||||||
|
.filter(function(task){
|
||||||
|
return task.__session_task__ }) }) },
|
||||||
|
|
||||||
|
|
||||||
// Queue (task)...
|
// Queue (task)...
|
||||||
@ -2873,8 +2877,9 @@ var TaskActions = actions.Actions({
|
|||||||
// XXX cache this???
|
// XXX cache this???
|
||||||
// XXX need to get running tasks by action name...
|
// XXX need to get running tasks by action name...
|
||||||
get queuedActions(){
|
get queuedActions(){
|
||||||
var test = this.isQueued.bind(this)
|
return this.cache('queuedActions', function(data){
|
||||||
return this.actions.filter(test) },
|
return data
|
||||||
|
|| this.actions.filter(this.isQueued.bind(this)) }) },
|
||||||
|
|
||||||
// XXX need a way to reference the queue again...
|
// XXX need a way to reference the queue again...
|
||||||
// .tasks.titled(name) will return a list...
|
// .tasks.titled(name) will return a list...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user