mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5625fc9e61
commit
262987d171
12
runner.js
12
runner.js
@ -352,14 +352,12 @@ object.Constructor('TaskManager', Array, events.EventMixin('flat', {
|
||||
// -> manager
|
||||
//
|
||||
titled: function(title){
|
||||
var titles =
|
||||
title == 'all'
|
||||
|| title == '*'
|
||||
|| new Set([...arguments])
|
||||
if(title == 'all' || title == '*'){
|
||||
return this }
|
||||
var titles = new Set([...arguments])
|
||||
return this
|
||||
.filter(function(task){
|
||||
return titles === true
|
||||
|| titles.has(task.title) }) },
|
||||
return titles.has(task.title) }) },
|
||||
|
||||
send: function(title, ...args){
|
||||
if(title == 'all' || title == '*'){
|
||||
@ -369,7 +367,7 @@ object.Constructor('TaskManager', Array, events.EventMixin('flat', {
|
||||
return this.titled(
|
||||
...(title instanceof Array) ?
|
||||
title
|
||||
: [title]))
|
||||
: [title])
|
||||
.send('all', ...args) },
|
||||
|
||||
// XXX each task should also trigger this when stopping and this
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user