Hi Mustafa

Normally, you would iterate over an array using
for(var i = 0, len = xx.length; i < len; i++){

}

The for-in works on each "key" of an object. This can be methods too..
and in case of IE, it seems to list the methods of the Array Object too.
Strange, but not really surprising.

The for loop described above should work without problems though.
Regards - Roman

Mustafa Sak wrote:
> Hi,
>  
> it is possible, that IE puts automaticaly Elments in to a new Array by
> default?
>  
> i tried this
>  
> var xx = new Array();
> for (key in xx)
> {
>    this.debug(key);
> }
>  
> In Firefox, i have no keys, like expected
>  
> but at IE 6 i have this output:
>  
> every
> some
> map
> filter
> forEach
> lastIndexOf
> indexOf
>  
> Could this happen? Is there a work arround?
>  
> regards Mustafa
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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