On May 24, 3:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Solved it. > > prototype added Objects to my arrays buggering up any for.. in .. > loops. > > Is prototype more a good library?... honestly?
Once upon a time, Prototype.js extended Object too, but fortunately its authors saw the light. Other libraries, such as jQuery, use name spaces to extend array functionality without extending the built-in Array object. The only time for..in should be used with Array is for (very) sparse arrays to save time when iterating over its elements. Otherwise, you are using an Array when you probably should be using an Object. -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
