title: Copy and Insert in d3 selection
body: <p>In a d3 program I need to get a node (with d3.selection) and then I want to insert in the same svg. </p>
  
  <p>I know there are some functions like append, and insert, but these functions are for new elements. </p>
  
  <pre><code>var node = d3.select("rect#someId"); //node with some attributes and listeners
  </code></pre>
  
  <p>Now my var node got the following attributes: 
  {_groups, _parents}</p>
  
  <pre><code>var anotherNode = d3.select("anotherNode").insert(node); //It work but it would be great a similar function or a workaround
  </code></pre>
  
  <p>Note. I need to preserve the listeners of the node</p>