mirror of
https://github.com/flynx/types.js.git
synced 2025-12-19 18:01:39 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fc3d0b849d
commit
cae17a0986
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "5.0.37",
|
||||
"version": "5.0.38",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -444,8 +444,8 @@ object.Constructor('Queue', Array, {
|
||||
return this },
|
||||
clear: function(){
|
||||
this.splice(0, this.length)
|
||||
this.trigger('queueEmpty')
|
||||
if(this.state == 'running'){
|
||||
this.trigger('queueEmpty')
|
||||
this.trigger('stop') } },
|
||||
|
||||
|
||||
@ -633,7 +633,8 @@ object.Constructor('TaskManager', Array, events.EventMixin('flat', {
|
||||
var titles = new Set([...arguments])
|
||||
return this
|
||||
.filter(function(task){
|
||||
return titles.has(task.title) }) },
|
||||
return titles.has(task.title)
|
||||
|| titles.has(task.name) }) },
|
||||
|
||||
// actions...
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user