You have to tell cleaning up objects apart:
There is a garbage collector. So, you do not have to clean up yourself.
It´s behaviour is sometimes inpredictable and it depends on the JS
engine. But do not worry, there is one. :-) So if you set the object
reference to null, the garbage collector will be able to clean up this
object. Of course ALL references have to point to null before the gc can
clean up the object.
But on the other hand there are qooxdoo objects, that are registered in
a central object registry (see constructor of qx.core.object). So even
if you delete all references to an object, there will be one reference
left: the one of the object registry. So you have to "dispose" these
objects meaning removing the from the registry.
So either you have to dispose single objects and set the reference of
the map to null or you have to use the method "_disposeMap()".
Rob.
>>> Guilherme Aiolfi <grad...@gmail.com> 10/1/2010 1:56 >>>
I would like to create such mechanism too. But I'm worried about the
memory leaks. I mean, when disposing objects from my app I will have to
take care of that global reference by myself, right? or it will never be
disposed for real.
On Thu, Sep 30, 2010 at 5:06 AM, Robert Nimax
<robert.ni...@inform-ac.com> wrote:
Hi,
what about creating a lookup table (plain javascript map or let´s call
it hash table) while filling the form ?
The key represents the "id" and the value is the handle to the widget.
Regards,
Rob.
>>> iaveryanov <iaverya...@gmail.com> 9/28/2010 2:23 >>>
Hello everybody!
I have the form with a lot of widgets. Each widget has the unique
defined id
(for example etnryfield.setUserData("id", "id_1001"))
Then the server sends: it is necessary to modify font of the entryfield
with
id_1001.
How can I get this entryfield by this id? What way is the best?
Thanks.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/How-can-I-get-concrete-widget-by-unique-id-tp5579198p5579198.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel