Lumir Stol schrieb:
Hi all qooxdoo's! ;-)

Could anybody please push me to right way? I did create some object which extends QxTarget and I want to let it live after temporary local variable dies. So I did some experiments (I'm starting with qooxdoo) and result is: my object is pushed into global QxObjectDataBase array, but when I leave scope where this object was created, it is automatically disposed.

So what do You propose I have to do? Do I have to use my own QxXyzManager as standalone object and search it by internally by hashCode of saved objects, or there is in qooxdoo some similar manageable structure for such objects already? You know, I have this thing working, but I will appreciate if some qooxdoo experienced programmer could propably share with me his/her opinion 'how right qooxdoo way looks'. If best solution is above mentioned, then I'm best smart guy in the world, if You will consider my almost zero javascript experiences ;-)

Yes, you may be able to use a instance of QxManager for this. You can also declare your objects in the global namespace. This would make it possible to use the everywhere in your code. As you can see, there are different ways for this requirement available.

Sebastian


Thanks and have a nice day!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to