Wow, Martin. That is nice :D
On 2/5/07, Martin Ström <[EMAIL PROTECTED]> wrote:
>
>
> function Element(tagName, options) {
> return Element.extend(document.createElement
> (tagName)).writeAttributes(options
> || {});
> }
>
> This way it would be really easy to create new elements when you don't
> need the full functionallity from Builder with all it's fixes and
> tweaks:
>
> var myHeader = new Element('div', {id: 'header'});
> $('container').appendChild(myHeader);
>
> What do you think? I would happily provide a patch with tests if you
> like this approach.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---