That part of Sortables I have to change. I used an array to keep track 
of sortables, but for keys I used strings. That's why I can not use 
for(i=0...). I will change the array to an object of key/value pair.

Francisco Brito wrote:
> Can anyone confirm this problem?
>
> I'm not sure where to post this or if it should be posted as a bug. 
> The interface site says that a section for interface will be put up in 
> the jQuery site.
>
> thx
>
> On 8/31/06, *Francisco Brito* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     The iterator being used is a for-in but the object is an Array, so
>     it's sometimes breaking and sometimes doing insane things due to
>     my additions to Array.prototype.
>
>     Sortables:92
>     for(i in jQuery.iSort.changed){
>
>     I suggest changing it to a vanilla for loop:
>     for(var i = 0; i < jQuery.iSort.changed.length; i++){
>
>     Optimization and actually seeing if it works is an exercise to the
>     reader ;)
>
>     IMHO I don't think iterating with a for-in is a good idea if the
>     object is an array.
>
>     Cheers,
>     Brito
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>   


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to