1
0
Fork 0

setlistener(): don't drop calls with invalid property -- the c++ side

outputs a nice error message in this case
This commit is contained in:
mfranz 2007-04-27 15:52:54 +00:00
parent 944e6a8548
commit 1e446a26ae

View file

@ -71,7 +71,6 @@ interpolate = func {
# #
setlistener = func { setlistener = func {
if(isa(arg[0], props.Node)) { arg[0] = arg[0]._g; } if(isa(arg[0], props.Node)) { arg[0] = arg[0]._g; }
elsif(typeof(arg[0]) != "scalar") { return; }
var id = _setlistener(arg[0], arg[1], size(arg) > 2 ? arg[2] : 0); var id = _setlistener(arg[0], arg[1], size(arg) > 2 ? arg[2] : 0);
if(__.log_level <= 2) { if(__.log_level <= 2) {
var c = caller(1); var c = caller(1);