title: Difference between Ext.widget() and Ext.ComponentQuery.query()?
body: <p>I have a component I created that extends Ext.window.Window, I've given it an alias of 'widget.customereditor'.  Once I've created an shown an instance of this component both of the following pieces of code seem to be getting a reference to the same thing:</p>
  
  <pre><code>Ext.ComponentQuery.query('customereditor')[0];
  Ext.widget('customereditor');
  </code></pre>
  
  <p>The problem is when I try to execute the close method on the returned object.  So the following does work and closes the window:</p>
  
  <pre><code>Ext.ComponentQuery.query('customereditor')[0].close();
  </code></pre>
  
  <p>While this does not work:</p>
  
  <pre><code>Ext.widget('customereditor').close();
  </code></pre>
  
  <p>I'm wondering what the difference is between the two ways of querying?</p>