title: How to remove the node from the page?
body: <p>I'm having some trouble removing a node from the NodeList using the orphan() function, hoping someone can help me out.</p>
  
  <p>I've got the following code:</p>
  
  <pre><code>dojo.connect(dojo.byId("close"), "onclick", function(){
      console.log('close was clicked');
      dojo.query("view-bg").orphan();
      dojo.query("view-image").orphan();
  });
  </code></pre>
  
  <p>I believe I am misunderstanding how the orphan function is used, but this is the most useful documentation I found so far: <a href="http://dojotoolkit.org/api/1.3/dojo/NodeList/orphan" rel="nofollow">http://dojotoolkit.org/api/1.3/dojo/NodeList/orphan</a></p>
  
  <p>When I click on the element the console does log my message so I know it is getting to that point, but for some reason the div with an id of 'view-bg' and 'view-image' are not being removed.</p>
  
  <p>Thanks,
  Levi</p>