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
e864249603
commit
128471870e
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -169,10 +169,8 @@ module.Queue = object.Constructor('Queue', Array, {
|
||||
// XXX will this be collected by the GC if it is polling???
|
||||
if(this.length == 0
|
||||
&& this.state == 'running'){
|
||||
this.trigger('queueEmpty')
|
||||
|
||||
// auto-stop...
|
||||
this.auto_stop ?
|
||||
// auto-stop...
|
||||
this.stop()
|
||||
// pole...
|
||||
: (this.poling_delay
|
||||
@ -260,6 +258,9 @@ module.Queue = object.Constructor('Queue', Array, {
|
||||
} else {
|
||||
this.trigger('taskCompleted', task, res) }
|
||||
|
||||
this.length == 0
|
||||
&& this.trigger('queueEmpty')
|
||||
|
||||
return this },
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user