title: Load data into Ext.data.Store with function on init in ExtJS MVC
body: <p>I need to fill Store data on init with finction like:</p>
  
  <pre><code>Ext.define('Vcs.store.Years', {
  
      extend: 'Ext.data.Store',
      fields: ['year'],
      data: this.getYears(),
      getYears: function() {
          var data = []
              date = new Date
              thisYear = date.getFullYear();
          for(var i = thisYear - 100; i &lt;= thisYear; i++) {
              data.push({
              year: i,
              });
          }
          return data;
      }
  });
  </code></pre>
  
  <p>This code gives error: <code>Object [object global] has no method 'generateYears'</code></p>