title: chrome.storage.local.get results in "Undefined" when called
body: <p>I'm building a chrome extension, and I needed to save some data locally; so I used the <a href="http://developer.chrome.com/extensions/storage.html" rel="nofollow">Storage API</a> . I got to run the simple example and save the data, but when I integrated it with my application, it couldn't find the data and is giving me "Undefined" result.</p>
  
  <p>Here is my Code:</p>
  
  <pre><code>    function saveResults(newsId, resultsArray) {
  //Save the result
          for(var i = 0; i &lt; resultsArray.length; i++) {
              id = newsId.toString() + '-' + i.toString();
              chrome.storage.local.set({ id : resultsArray[i] });
          }
  //Read and delete the saved results
          for(var i = 0; i &lt; resultsArray.length; i++) {
              id = newsId.toString() + '-' + i.toString();
              chrome.storage.local.get(id, function(value){
                  alert(value.id);
              });
              chrome.storage.local.remove(id);
          }
      }
  </code></pre>