setlistener(): now that we know the params, we only need to unwrap the first two
This commit is contained in:
parent
0d3c7cec6f
commit
12c11dfa6f
1 changed files with 2 additions and 3 deletions
|
@ -72,9 +72,8 @@ var setlistener = func(node, fun, init=0, runtime=1) {
|
||||||
if(isa(node, props.Node)) node = node._g;
|
if(isa(node, props.Node)) node = node._g;
|
||||||
var propghost = ghosttype(node);
|
var propghost = ghosttype(node);
|
||||||
var id = _setlistener(node, func {
|
var id = _setlistener(node, func {
|
||||||
forindex (var i; arg)
|
arg[0] = props.wrapNode(arg[0], nil);
|
||||||
if(ghosttype(arg[i]) == propghost)
|
arg[1] = props.wrapNode(arg[1], nil);
|
||||||
arg[i] = props.wrapNode(arg[i], nil);
|
|
||||||
call(fun, arg);
|
call(fun, arg);
|
||||||
}, init, runtime);
|
}, init, runtime);
|
||||||
if(__.log_level <= 2) {
|
if(__.log_level <= 2) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue