On 12/11/06, RobG <[EMAIL PROTECTED]> wrote:

> Changing the elements nodeList to an Array means that the collection is
> no longer live - whether that was intended is another unknown.

Yes. Prototype never returns a NodeList but an (automatically
Enumerable extended) Array.

> the properties of an object (such as when using for..in) do not have to be
> returned in any particular order.
> It has been an issue in the past where a particular
> order was expected, but some browsers returned them in the order they
> are added and others in some other order (say sorted alphabetically).

I know that the order in "for..in" is an implementation details and I
remember at least one other place in Prototype where in = out is
assumed. Browser implementations seem to respect the order as far as I
can say, so I'd love to hear about the browser you mention which does
not do so. Which one is it?

--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to