Treat undefine as 0
This commit is contained in:
parent
836bdfd33d
commit
b7ba3b3ea2
@ -65,7 +65,7 @@ class Chain
|
||||
// MultiChain
|
||||
Multi( name, handler, l, timeout, trigger )
|
||||
{
|
||||
if( l == 0 )
|
||||
if( l == 0 || l === undefined )
|
||||
{
|
||||
Dragonfly.Info( "MultiChain " + name + ": length is zero, directly running handler" );
|
||||
handler.apply( undefined, [] );
|
||||
|
Loading…
Reference in New Issue
Block a user