From e522611638acbbe057f2b06039ae4253cc2ec46e Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 22 Jul 2008 22:38:34 +0000 Subject: [PATCH] closure(): level is optional and defaults to 0 --- Nasal/io.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/io.nas b/Nasal/io.nas index 0c0673c93..197dfdcea 100644 --- a/Nasal/io.nas +++ b/Nasal/io.nas @@ -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);