At 09:07 PM 7/9/2007, zou lunkai wrote:
obj = new Object();
obj.onKeyDown = function ()  { };
Key.addListener(obj);
delete obj;

The observed behavious is:
After deleting 'obj', the onKeyDown event handler could still be
invoked.  So I think the created object is still alive, but without an
explicit reference.

Mr. Broken Record Man here. If the reference to 'obj' that 'Key.addListener' stores were a weak reference, then this would all work without further ado. If I'm counting right, this is the third use case I've mentioned.

Eric



_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to