Bah... you already said so... I should had read it all before
posting :P
--
Ariel Flesler
http://flesler.blogspot.com/
On 7 jul, 20:43, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> The array returned by .get() does have its elements in the correct order.
> The bug is actually in your code:
>
> >
Just in case you want some background knowledge...
jQuery.makeArray uses a reversed loop, to improve perfomance. That's
why the indexes are set like that.
Cheers
--
Ariel Flesler
http://flesler.blogspot.com/
On 7 jul, 20:43, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> The array returned by .g
Looks like you are right. Thanks for the quick answer!
On Jul 7, 4:43 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> The array returned by .get() does have its elements in the correct order.
> The bug is actually in your code:
>
> > for(ai in arr) { txt.push(arr[ai].innerHTML); }
>
> Y
The array returned by .get() does have its elements in the correct order.
The bug is actually in your code:
> for(ai in arr) { txt.push(arr[ai].innerHTML); }
You can't use a "for...in" loop on an array and expect to get consistent
results. The order of enumeration is implementation depen
4 matches
Mail list logo