I checked back discussions and I don't see this addressed. There's a
collision between Prototype and certain kinds of array calls as
documented at 
http://zurahn.wordpress.com/2009/01/11/prototypejs-breaks-javascript-foreach-loops/

I saw this behavior on my site when I added an Amazon product pop-up
JavaScript that apparently makes a "for (var foo in array)" call. I've
notified Amazon as to the problem, in case they can fix it easily on
their end to avoid the collision.

In my case, I saw millions of queries made to my site that look like
this:

"GET /function%20(filter,%20iter
ator,%20context)%20%7B%20%20%20%20iterator%20=%20iterator%20?
%20iterator.bind(context)%20:%20Prototype.K;%20%2
0%20%20var%20results%20=%20[];%20%20%20%20if%20(Object.isString
(filter))%20{%20%20%20%20%20%20%20%20filter%20=
%20new%20RegExp(filter);%20%20%20%20}%20%20%20%20this.each(function%20
(value,%20index)%20{if%20(filter.match(v
alue))%20{results.push(iterator(value,%20index));}});%20%20%20%20return
%20results;} HTTP/1.1"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to