title: Create a function return in component (grid) Extjs 4.1
body: <p>I have a grid panel and i make a function inside that like</p>
  
  <pre><code>myFunction: function(variable){ 
      grid.getStore().each(function(item) {
          if (item.get('value') == variable) {
               alert('run'); // running
               return true; // but not return true
          }
      });
      return false;
  }
  </code></pre>
  
  <p>But when i using</p>
  
  <pre><code>alert(grid.myFunction('abc')); // always return false Although alert('run'); running
  </code></pre>
  
  <p>How to fix that thank</p>