Ow, hehe... I didn't know that. It took me all night yesterday trying to
find the bug. That's a tricky behavior.
Thank you, Martin.

On Tue, Jan 25, 2011 at 6:02 AM, Martin Wittemann <[email protected]
> wrote:

> Hey,
>
> you almost got me into the same mistake again. ;) But I realized it quite
> fast this time because I'm getting used to this behavior. Its not a problem
> of the code, its a problem of the console. The console tries to be
> intelligent and recognizes that the returned thing is an array because it
> has a length property. The sad thing is, that its a data array so reading
> the data wit x[y] returns always undefined which leads to an empty array in
> the console. Never the less, the data array is ok and contains the right
> objects. :) You can use "toArray()" to see the native javascript array for
> debugging.
>
> Regards,
> Martin
>
>
> Am 25.01.2011 um 00:08 schrieb Guilherme Aiolfi:
>
> Hi,
>
> take a look at this playground code: *http://tinyurl.com/4txnlfk*
> *
> *
> Select the 'a' item and then click in the button.
>
> I would expect it to return an array containing the model of the "a" item
> but it always returns empty.
>
> I tried delegating the bind like:
>
> controller.bindProperty("id", "model", null, item, id); //OR
> controller.bindProperty(null, "model", null, item, id); // OR
> controller.bindProperty("", "model", null, item, id);
>
> none of the above worked. So, my question is how to do use
> getModelSelection with the tree widget?
>
>
>
>
>
> <ATT00001..txt><ATT00002..txt>
>
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to