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
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
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
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
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);
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
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