lol, I've never noticed that before... I had performance issues when
assigning 2 elements in an array, but that makes sense now with the
high numbers... I solved this using a Hash instead of an Array and now
works great!

Thanks for the response!

On 2 jul, 15:30, Frederick Polgardy <[EMAIL PROTECTED]> wrote:
> If you assign something to the 3255th element of an array, your array  
> now has 3255 elements.  That's how arrays work. :-)
>
> -Fred
>
> On Jul 2, 2008, at 8:26 AM, Marcelius wrote:
>
> > window.myObjectDeclared.anArrayMember[3255] = someData;
> > alert(window.myObjectDeclared.anArrayMember.length); //returns 3255
>
> --
> Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to