localstorageshim
localstorageshim copied to clipboard
localStorage shim for IE 6/7
UserData isn't synchronous and this hindrance is further exaggerated by the fact that we're loading things in an iframe. For example, it's pretty hit or miss if the following works:...
Currently if you set a key in http page, the value will not be accessible in the https version of the page. This creates problems for sites like eCommerce sites...
We're accessing `syncStoredKeys()` often to keep our internal cache of keys (and localStorage.length) in sync. There are things that can be done to speed up this method.
TODO: steps to repro
This: `localStorage.myProp = 'val';` should work the same as: `localStorage.setItem('myProp','val');`