mirror of
https://github.com/flynx/types.js.git
synced 2025-12-19 09:51:40 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a26ab1e8ff
commit
1cc3889632
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "5.0.24",
|
||||
"version": "5.0.25",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
10
runner.js
10
runner.js
@ -200,7 +200,15 @@ object.Constructor('Queue', Array, {
|
||||
&& this.state == 'running'){
|
||||
this.auto_stop ?
|
||||
// auto-stop...
|
||||
this.stop()
|
||||
(this.poling_delay ?
|
||||
// wait a bit then stop if still empty...
|
||||
setTimeout(function(){
|
||||
that.length > 0 ?
|
||||
that.__run_tasks__()
|
||||
: that.stop()
|
||||
}, this.poling_delay || 200)
|
||||
// stop now...
|
||||
: this.stop())
|
||||
// pole...
|
||||
: (this.poling_delay
|
||||
&& setTimeout(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user