for(var/i in o.overlays)
del i
Problem description: this causes the runtime error: bad del
what would be the right way to clear the object's overlays? I'm using this with obj.MouseDrop
Code:
for(var/i in o.overlays) Problem description: this causes the runtime error: bad del what would be the right way to clear the object's overlays? I'm using this with obj.MouseDrop |
Does that completely remove the old overlays, or are they left in memory where they might start to take up lot of space since overlays on some objects will change often? it still seems strange to me that it is a bad del.
|
o.overlays = new