[Prototype-core] String.prototype.evalScripts and script src=foo.js

2007-10-24 Thread Viktor Kojouharov
Since currently prototype can't eval such scripts, I've a patch, which 'evals' such script tags. It includes a modified evalScripts method, a document.insertScript method, and tests for those methods. I've uploaded the patch as the second patch to this bug: http://dev.rubyonrails.org/ticket/9871

[Prototype-core] Other API using Object.prototype breaks prototype.js for/in loop

2007-10-24 Thread Jean-Philippe Encausse
Hi there, As some of you may already know, Really Simple History 0.6 beta has been released yesterday : http://code.google.com/p/reallysimplehistory/ Unfortunately, using it has brought this issue to our attention : If another javascript API extends javascript object using Object.prototype,

[Prototype-core] Re: Other API using Object.prototype breaks prototype.js for/in loop

2007-10-24 Thread Mislav Marohnić
On 10/24/07, Jean-Philippe Encausse [EMAIL PROTECTED] wrote: Unfortunately, using it has brought this issue to our attention : If another javascript API extends javascript object using Object.prototype, prototype.js will break in several places when calling for/in loops. Months ago, I

[Prototype-core] Re: Other API using Object.prototype breaks prototype.js for/in loop

2007-10-24 Thread Olivier Jaquemet
In short, Object prototype is verboten. Prototype library will break if you augment Object.prototype, and this is not likely to change. [...] We could say, json.js is verboten :) I hope this clears up the issue. This is very clear :) I will forward this to the RSH maintainer in hope he