Obviously not. Something like this would be great to have under the
Element class in prototype I think...

copy: function(element) {
        var content = element.cloneNode(true);
        Element.reExtend(content);
},

reExtend(element){
        var length = element.childNodes.length;
        for(var i = 0; i < length;  i++)        {
                var node = content.childNodes[i];
                if(node._extended){
                        node.removeAttribute("_extended");
                        Element.extend(node);
                }
                Element.reExtend(element);
        }       
},


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to