title: How to remove a view from parent in appcelerator titanium
body: <p>Suppose we have something like this:</p>
  
  <pre><code>var parent = parentView; // A View
  var child = Alloy.createController('ChildView',{});
  parent.add(child);
  </code></pre>
  
  <p>And in the ChildView.js controller:</p>
  
  <pre><code>function closeView(){
      // remove ourself from parent how?
  }
  </code></pre>
  
  <p>Can you do this somehow? From the closeView() remove the child view from its parent?</p>
  
  <p>The way i can solve it i guess is sending in the parent view in the {} options to the childview and keep a reference there {parent:parentView}. And then do a parent.remove()... in my closeView(). But is there some other way?</p>