localstorageshim icon indicating copy to clipboard operation
localstorageshim copied to clipboard

Provide support for interfacing w/ localStorage via property accessors

Open mattpowell opened this issue 13 years ago • 1 comments

This: localStorage.myProp = 'val'; should work the same as: localStorage.setItem('myProp','val');

mattpowell avatar Dec 16 '11 18:12 mattpowell

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

mattpowell avatar Dec 16 '11 18:12 mattpowell