Anyone ever implemented something like this? or have a nicer way of
doing it?

http://mootools.net/shell/KPPNg/

Element.implement({

    conditionalAdopt: function(){
        if(Array.prototype.splice.apply(arguments,[0,1])[0]){
            Array.flatten(arguments).each(function(element){
                element = document.id(element, true);
                if (element) this.appendChild(element);
            }, this);
            return this;
        }
        return this;
    }

});

To unsubscribe from this group, send email to 
mootools-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to