[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] Re: SV: [Prototype-core] Inheritance: your thoughts?

2007-06-27 Thread Richard Quadling
On 27/06/07, Tobias Haagen Michaelsen [EMAIL PROTECTED] wrote: 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

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

2007-06-27 Thread Mislav Marohnić
On 6/27/07, Tobias Haagen Michaelsen [EMAIL PROTECTED] wrote: One of the reasons I love Prototype is because it utilises the strengths of the language. I don't want a lot of new 'magic' ways of doing stuff that is already possible pretty clean ways. We're aiming for this feature to be as

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

2007-06-27 Thread jdalton
While doing that, we're embracing some already established conventions from other languages in order not to re-invent everything. With that quote I want to reiterate that MooTools already has Inheritance. Its inheritance mechanism was also developed from Dean Edwards' Base class. MooTools has

[Prototype-core] Element.replace()... would be nice if it worked with elements as well as html...

2007-06-27 Thread jdalton
Hello, I was looking for a quick way to replace one element with another and thought surely Element.replace(). But when I looked up the API it's second argument is a string (which is very very cool, don't get me wrong). What about for element.parentNode.replaceChild(newElement, element);

[Prototype-core] Re: Element.replace()... would be nice if it worked with elements as well as html...

2007-06-27 Thread Tobie Langel
that's planned. On Jun 27, 4:51 pm, jdalton [EMAIL PROTECTED] wrote: to get the replaced element i usually do: element = $(element); element.parentNode.insertBefore( newElement, element); return element.remove(); --~--~-~--~~~---~--~~ You received

[Prototype-core] Re: Element.replace()... would be nice if it worked with elements as well as html...

2007-06-27 Thread jdalton
ok cool, I will just mod my own until then. thanx (wow responces are fast). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to