Why not just use .inject? wraps is more for "in place wrap", just look at
the source code:
https://github.com/mootools/mootools-core/blob/master/Source/Element/Element.js#L754-L763


On Tue, Jan 15, 2013 at 6:00 PM, 4fingers <graemek...@gmail.com> wrote:

> Bug has now been reported:
> https://github.com/mootools/mootools-core/issues/2463
>
>
> On Monday, 14 January 2013 18:16:14 UTC, Sanford Whiteman wrote:
>>
>> > The bug can be see when I want to do the same thing as:
>> > http://jsfiddle.net/m92Lu/7/  but using wraps:
>> http://jsfiddle.net/m92Lu/8/
>>
>> Exactly, wraps() has a bug with elements that aren't in the DOM but
>> you can use inject() just as well.
>>
>> -- S.
>>
>>

Reply via email to