Well damn, it looks like the iterable.toArray() stuff has been in
there for quite some time. I looked back through all the versions of
prototype we have been using for the last year and this method has
remained mostly the same. I'm now thinking this has been buggy code in
our application for a while and we are just now discovering it because
Prototype is throwing that exception when a string is passed in to $A
(). Looks like this is one regression bug that has really helped us
Hope I didn't waste too much of your time.
On Apr 14, 11:47 am, kangax <kan...@gmail.com> wrote:
> On Apr 13, 6:25 pm, mr_justin <gro...@jperkins.otherinbox.com> wrote:
> > > This is a regression.
> > OK, that's good to hear.
> > > so `$A('one', 'two', 'three')`, as in your example, should
> > > produce - ['o', 'n', 'e'].
> > That doesn't seem right. In the past, it has always produced a 3-item
> > array out of the arguments, not the characters of the first argument.
> > Essentially behaving just like a normal square bracket-declared array.
> > I used this technique quite a bit because it was easy to go from
> > ['one', 'two', 'three'] to $A('one', 'two', 'three').
> At least 184.108.40.206 has already been operating on `iterable` which is a
> first argument of `$A`. Do you remember which version was flattening
> all of the arguments?
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at