have you checked if res is empty right before the loop? maybe the problem is
not in the lines you say.
what's more, you may have to use hasOwnProperties at some point. firefox
probably executes that as desired, but chrome may iterate on all properties
of an array object besides your keys.

Edu


On Sun, Jul 17, 2011 at 21:17, kiran babu <[email protected]> wrote:

> Hi,
>
> This is my 10 attempt to build a framework based on qooxdoo(in 3 yrs), hope
> this time i will be successfull (i think i am doing pretty well), any way
> right now i have a problem i have the following set of lines in the code
> which works fine in the source version
>
> for ( var iterable_element in res) {
>
>                       alert(iterable_element);
>                                      var tempItem = new
> qx.ui.form.ListItem("", "test/icons/users.png");
>                                      tempItem.setLabel(iterable_element);
>                                      tempItem.set("userid",
> res[iterable_element]);
>                                      this.__usersList.add(tempItem);
>                                    }
>
>
> but when i build the same source it dosent enter the loop at all in the
> build version, kindly give me advise on how to work with associative arrays
> in qooxdoo, if it works in source why is it not working in the build
> version.
>
> Regards,
> Kibu
>
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to