[jQuery] Re: $(...).get() order reversed between 1.2.4 and 1.2.5

2008-07-08 Thread Ariel Flesler
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: > > >

[jQuery] Re: $(...).get() order reversed between 1.2.4 and 1.2.5

2008-07-08 Thread Ariel Flesler
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

[jQuery] Re: $(...).get() order reversed between 1.2.4 and 1.2.5

2008-07-08 Thread joelarson
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

[jQuery] Re: $(...).get() order reversed between 1.2.4 and 1.2.5

2008-07-07 Thread Michael Geary
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