wind_of_o a écrit :
> version = "1.5"
> author = "'Sam Stephenson'"
> extend = "function (object) {
> return Object.extend.apply(this, [this, object]);
> }"
I don't have that. So perhaps the page you're testing on uses other
scripts that augment Object.prototype with a extend method. That is
widely regarded as a malpractice, at it breaks every for...in loop out
there, including the one used internally by Hash#each.
> 2) construct a Element return an Error with Firebug
>
> new Element('p');
>
> 1 error:
> String contains an invalid character" code: "5
Either you did not type what you thought you typed (perhaps a weird,
invisible special char is in there) or you fall victim to other
libraries being loaded in your page that don't play nice with Prototype.
I just tried again both your codes on Proto 1.6.0 (Firefox 2.0.0.11,
this won't differ from 2.0.0.9) and they work fine.
--
Christophe Porteneuve aka TDD
[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
-~----------~----~----~----~------~----~------~--~---