[Prototype-core] SV: [Prototype-core] Re: Prototype and JavaScript 1.6 Array methods

2007-07-17 Thread Tobias Haagen Michaelsen
Fra: prototype-core@googlegroups.com [mailto:[EMAIL PROTECTED] På vegne af Mislav Marohnic Sendt: 10. juli 2007 12:38 On 7/10/07, Tobie Langel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Your post just triggered a commit (http://dev.rubyonrails.org/

[Prototype-core] SV: [Prototype-core] Inheritance: your thoughts?

2007-06-27 Thread Tobias Haagen Michaelsen
JavaScript is not a class based language and I think it is a mistake to try to hard to make it act like one. Many have tried this - and failed. I think we should focus some more on what it is we want to be able to do and not trying to make JavaScript into something it isn't. One of the

[Prototype-core] SV: [Prototype-core] To make Object.extend() support methods named 'toString'

2007-05-30 Thread Tobias Haagen Michaelsen
It does not ignore based on name -- if you define a property named 'toString' as a function (or some other object) it will be included in the for-in loop. But the for-in loop ignores 'build-in' properties like 'toString' on Object etc. and 'length' on Array. -Tobias -Oprindelig