1
0
Fork 0

closure(): level is optional and defaults to 0

This commit is contained in:
mfranz 2008-07-22 22:38:34 +00:00
parent 1ad5b18ec8
commit e522611638

View file

@ -290,7 +290,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
var _io_open = io.open;
var _closure = globals.closure;
globals.closure = func(fn, level) {
globals.closure = func(fn, level = 0) {
if(fn != self and fn != caller(0)[1] and fn != _io_open)
return _closure(fn, level);