Hey Yanick, Yanick a écrit : > The problem lies in the fact that Prototype 1.5 extends the > Object.extend function to every objects, so the function > setRequestHeaders tries to add the 'extend' function to the headers to > be sent, thus generating the component exception.
While your suggested patch certainly works due to Hash#each's implementation (did you submit anything to Trac?), your diagnosis doesn't follow through. Prototype does not add extend to every object. Prototype doesn't add *anything* to *every* object (that would require augmenting Object.prototype, which we don't do). Indeed, most people using 1.5.0 alone don't have this issue. In your case, you must use another library in conjunction with Prototype that augmented Object.prototype and added extend to it. Regards, -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
