[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/key_eve...

From: Eric Hughes
Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/key_eve...
Date: Tue, 10 Jul 2007 06:24:22 -0600

At 09:07 PM 7/9/2007, zou lunkai wrote:
obj = new Object();
obj.onKeyDown = function ()  { };
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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]