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 :)

Reply via email to