Agreed. Have often thought that this would be a useful addition.

Element.insert(part1, part2, part3)

and

Element.insert({
  top : [part1, part2, part3]
);

should both be able to be implemented without too much hassle and
would provide some really valuable functionality - let's make it
happen!

Mike.

On Nov 6, 7:54 am, Deadelus <johanm...@gmail.com> wrote:
> Probably easier to implement using an Array:
>
> container.insert({
>  top: [part1, part2, part3],
>  bottom: [part4, part5],
>  after: "<p>Hello World</p>"
>
> });
>
> On Nov 5, 9:53 pm, Ngan Pham <nganp...@gmail.com> wrote:
>
>
>
> > Would it be reasonable to implement it so that Element.insert takes as many
> > content as you pass it?  This will exclude insertion points of course...
>
> > container.insert(part1);
> > container.insert(part2);
> > container.insert(part3);
>
> > would be:
>
> > container.insert(part1, part2, part3);
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to