In both of those cases, Moo will be using `div1.appendChild(div2)`.

The source code knows all. :)



On Mon, May 9, 2011 at 3:17 PM, Philip Thompson <[email protected]>wrote:

> I may have dreamed this up, but don't certain Element-manipulation methods
> work more efficiently than others? For example, I used to use .adopt() a
> lot, but now I use mainly .inject() because I thought it was more efficient.
>
> From:
> document.id('div1').adopt(document.id('div2'));
>
> To:
> document.id('div2').inject(document.id('div1'));
>
> Am I slightly nuts here?
>
> ~Philip
>
> http://lonestarlightandsound.com/
>
>
> On Mon, May 9, 2011 at 2:39 PM, robarb <[email protected]> wrote:
>
>> Excellent.  Thanks very much.
>>
>> Rob
>>
>> On May 9, 11:07 am, Sanford Whiteman <[email protected]>
>> wrote:
>> > > It actually MOVES the element with no residue?
>> >
>> > Yes, any garbage collection is taken care of by the framework.
>> >
>> > -- S.
>>
>
>

Reply via email to