title: creating extjs store data record is failing
body: <p>I have the error <code>Uncaught TypeError: Cannot read property 'items' of undefined</code><br>
  The following line where I create the NewEditInfo type.
  The alert shows there are values in the arrays so I have no clue..</p>
  
  <pre><code>getNewEditInfo : function () {
          var values = {};
          var form = this.getForm();
          var formValues = form.getValues();
          for (var fieldName in formValues)
              values[fieldName] = (formValues[fieldName] != "") ? formValues[fieldName] : null;
          alert(JSON.stringify(values));
          alert(JSON.stringify(formValues));
          NewEditInfo = Ext.data.Record.create([{
                          name : "id",
                          type : "string"
                      }, {
                          name : "hardwareId",
                          type : "string"
                      }, {
                          name : "location",
                          type : "string"
                      }, {
                          name : "active",
                          type : "string"
                      }
                  ]);
  
          var newEditInfoInstance = new NewEditInfo({
                  id : values['idField'],
                  hardwareId : values['hardwareIdField'],
                  location : values['location '],
                  active : values['active']
              });
          return newEditInfoInstance;
      }
  </code></pre>
  
  <p>Can anyone help please?</p>