marcuswestin/store.js — pull request #24 by buger (2011-11-03 22:35:21+00:00)
Title: Fixed bug when saving 'undefined' values

If you save `undefined` value with store.js, you'll get error while getting it.
It's pretty easy to reproduce: http://jsfiddle.net/8w6qT/2

```javascript
store.set('prop', undefined);
store.get('prop');
-> Uncaught SyntaxError: Unexpected token u
```
JSON can't parse "undefined" string

This bug caused by browser localStorage implementation (tested in Chrome and Firefox):
```javascript
localStorage.setItem('prop', undefined);
localStorage.getItem('prop');
-> "undefined"
```
localStorage store undefined values as strings

This patch fix it. http://jsfiddle.net/8w6qT/2