http://www.andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/
On Apr 26, 5:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Sort of new to prototype, but it seems that when I have a associative
> array, and do the following:
>
> for(var j in myAssocArray){
> alert(j);
>
> }
>
> I'll see the actual keys of the associative array, followed by things
> like
>
> "eachSlice:function (number, iterator) {
> var index = - number, slices = [], array = this.toArray();
> while ((index += number) < array.length) {
> slices.push(array.slice(index, index + number));
> }
> return slices.map(iterator);
>
> }"
>
> I know these are prototype's function definitions. Is this a defect,
> or am I doing something incorrectly?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---