Create a gist now

Instantly share code, notes, and snippets.

Element.disposeSelf and Element.destroySelf - removes an element without removing its content
var moveContent = function(element){
var nodes = $A(element.childNodes);
var parent = element.parentNode;
for (var i=0, l=nodes.length; i<l; i++){
parent.insertBefore(nodes[i], element);
disposeSelf: function(){
return this.dispose();
destroySelf: function(){
return this.destroy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment