Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
// TODO remove(selector)?
// TODO remove(node)?
// TODO remove(function)?
d3_selectionPrototype.remove = function() {
  return this.each(function() {
    var parent = this.parentNode;
    if (parent) parent.removeChild(this);
  });
};
New to GrepCode? Check out our FAQ X