I expended the Object.prototype to add some global attributes and
methods,then Ajax.request didn't work.
Trace the question , I find the reason:
   for (var name in headers){
                this.transport.setRequestHeader(name, headers[name]);
  }
these codes (var name in headers) got all the attributes of the var
headers(a array),this will get the Object.prototype 's new attribute
and function.although attribute is a void header ,Ajax.header still
work.But a function will stop the process.

I think Ajax.request must fix this bug. Don't use "in" to iterate a
array.


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

Reply via email to