fix tiny bug which cannot work with json.js
if a page import json.js every objects will have a function named
toJSONString
the code
for(var name in headers)
this.transport.setRequestHeader(name, headers[name]);
won't work
fix to
for (var name in headers)
{
//add by zhangle begin
if(name == "toJSONString")
continue;
//add by zhangle end
this.transport.setRequestHeader(name, headers[name]);
}
will be ok
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---