Hello,

Is there a way to create regular javascript arrays when using
Prototype?

The problem is that I would like to integrate prototype to one of my
sites but it already uses lots of other pieces of javascript that use
the for (x in myArray)... construction. When using that kind of loop
over an array that has been created with e.g myArray = new Array("foo",
"bar") or myArray = ["foo", "bar"], x and myArray[x] will be:

0 - foo
1 - bar
each - function(iterator) {....}
all - function(iterator) {...}
any - function(iterator) {...}
and so on... Actually it will loop over all the Prototype methods added
to the Array object.

I'm not sure whether this is a bug or something I'm doing wrong..

Regards,
Renaud


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

Reply via email to