title: Sencha Touch Ext.navigation.View pop to root
body: <p>I have an Ext.navigation.View in which I have pushed a few views. Certain user interactions require that I go directly back to the top level of the navigation view -- the equivalent of popToRootViewControllerAnimated: on a UINavigationController in iOS.</p>
  
  <p>I have tried various things like:</p>
  
  <pre><code>while(navigationView.getItems().getCount() &gt; 1)
      navigationView.pop();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>while(navigationView.canPop())
      navigationView.pop();
  </code></pre>
  
  <p>Neither work. The first example seems to put me into an infinite loop which isn't too surprising. The second example only seems to pop one view off.</p>
  
  <p>So the question: What is the proper way to pop to the root view in an Ext.navigation.View in Sencha Touch (version 2 developer preview)?</p>