From 12c11dfa6f43807466ccc608816d7a16c6579eef Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 15 Oct 2007 18:00:17 +0000 Subject: [PATCH] setlistener(): now that we know the params, we only need to unwrap the first two --- Nasal/globals.nas | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Nasal/globals.nas b/Nasal/globals.nas index 2057561c2..492fa64d6 100644 --- a/Nasal/globals.nas +++ b/Nasal/globals.nas @@ -72,9 +72,8 @@ var setlistener = func(node, fun, init=0, runtime=1) { if(isa(node, props.Node)) node = node._g; var propghost = ghosttype(node); var id = _setlistener(node, func { - forindex (var i; arg) - if(ghosttype(arg[i]) == propghost) - arg[i] = props.wrapNode(arg[i], nil); + arg[0] = props.wrapNode(arg[0], nil); + arg[1] = props.wrapNode(arg[1], nil); call(fun, arg); }, init, runtime); if(__.log_level <= 2) {