Good to know.. Thanks. On Thu, Dec 17, 2009 at 1:47 PM, Christoph Pojer <[email protected]>wrote:
> Hello Eneko, > > thank you for bringing this up. We discussed it some months ago but > then forgot about. We are currently discussing it and we will consider > an implementation of it for the next MooTools release. > > On Dec 17, 8:24 pm, Eneko Alonso <[email protected]> wrote: > > I was looking at the code for the adopt method in Mootools Core expecting > it > > to use a documentFragment, which is supposed to increase the performance > by > > reducing the number of dom operations to one. > http://ejohn.org/blog/dom-documentfragments/ > > > > The current code is: > > adopt: function() { > > Array.flatten(arguments).each(function(element) { > > element = document.id(element, true); > > if (element) this.appendChild(element); > > > > }, this); > > return this; > > }, > > > > Is there any reason for not using documentFragment? > > > > Thanks :) >
