Commit d1cd291e authored by Julien Cigar's avatar Julien Cigar
Browse files

added Yeti.DOM.appendClone()

parent 8a854492
......@@ -356,6 +356,17 @@
return removed;
}
/* Yeti.DOM.appendClone
* Append a cloned node to an element. Needed because elem.appendChild()
* on an imported node (document.importNode) is broken under IE
*/
Yeti.DOM.appendClone = function(node, cloned_node) {
document.importNode
? node.appendChild(cloned_node)
: node.appendChild(cloned_node).innerHTML = cloned_node.innerHTML;
}
/***********************************************************************
Tools
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment