title: Sencha Touch 2.0.1.1 Local Store not saving values
body: <p>I am trying to store in the local storage and its not getting stored. 
  I need to store two values as state id and license type as 1 record and next time I will update it. So the store will always has 1 record like below.</p>
  
  <pre><code>{
   'stateId': 'NJ',
   'licenseType': 'BDL'
  }
  </code></pre>
  
  <p>I tried for the last 2 days and with different option but its not storing.
  Can someone please tell me what can be the problem in my code.</p>
  
  <p>Note: I am trying to test is using Chrome browser.</p>
  
  <p>Store Code</p>
  
  <pre><code>Ext.define("Sencha.store.TestParams", {    extend: "Ext.data.Store",
      requires: 
      [
          "Ext.data.proxy.LocalStorage"
      ],
      config: {
          model: "Sencha.model.TestParam",
          autoSync: true,
          proxy: {
              type: 'localstorage',
              id: 'ezdt-test-params'
          }
      }
  });
  </code></pre>
  
  <p>Model Code
  Code:</p>
  
  <pre><code>Ext.define("Sencha.model.TestParam",
  {
      extend: "Ext.data.Model",
      config:
      {
          idProperty: 'id',
          fields:
          [
              { name: 'id', type: 'int' },
              { name: 'stateId', type: 'string' },
              { name: 'licenseType', type: 'string' }
          ]
      }
  });
  </code></pre>
  
  <p>Actual Code to save
  Code:</p>
  
  <pre><code>var modTestParamInitialValues = Ext.create("Sencha.model.TestParam", {
      id: 'ezdt', //Always Same as there will be only one record.
      stateId: strSelectedState,
      licenseType: strSelectedLicenseType
  });
  storTestParams.add(modTestParamInitialValues);
  storTestParams.sync();
  </code></pre>
  
  <p>Code I am using to retrieve the store value.
  Always its printing as Not Set</p>
  
  <pre><code>var storTestParams = Ext.getStore("TestParams");
  console.log("storTestParams#####--&gt;" + storTestParams);
  //storTestParams.load();
  if(null != storTestParams)
  {
      var intTestParamCount = storTestParams.getCount();
      if(intTestParamCount == 0)
      { 
          console.log("Not Set");
      }
      else
      { 
          console.log("Set Correctly");
      }
  }
  else
  { 
      console.log("Set Correctly");
  }
  </code></pre>
  
  <p>I hope I give all the details. If you need any more details please let me know.</p>
  
  <p>Thanks for your help.
  Joseph</p>