On 5/30/07, timcharper <[EMAIL PROTECTED]> wrote:
>
>
> What do you think if we added a shortcut method to
> an instantiated method capable of building and appending a new element
> to it in one swoop?


So you're proposing a wrapper around "new Element(); appendChild()"? It's
useful, yeah... But is "build" a right name? How about "append":

  div.append('p', { className: 'foo' })

And what should the build method return? The div or the new element? The
latter is more useful but breaks consistency.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to