On Sun, Jan 18, 2009 at 3:12 PM, Andreas Junghans <
andreas.jungh...@stz-ida.de> wrote:

> > For qooxdoo use right now, if one wants to use for/in, the following
> > usage model might be appropriate:
> >
> >       var a = new Array();
> >       var x = new Array();
> >       a[23] = 42;
> >       for (var i in a)
> >       {
> >         if (! isNaN(parseInt(i)))
> >         {
> >           x.push(i + ": " + a[i]);
> >         }
> >       }
> >       alert(x.join('\n'));
>
> Sorry, but this is ugly as hell :-)


I sure won't disagree with you there! :-)

Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to