localstorageshim
localstorageshim copied to clipboard
Provide support for interfacing w/ localStorage via property accessors
This: localStorage.myProp = 'val';
should work the same as: localStorage.setItem('myProp','val');
My best guess for how to do this would be to enumerate the localStorage object onunload and persist the properties that don't match: getItem
, setItem
, removeItem
, key
, clear
, or length