if you call drop() in IE 7/8 twice, the first time, the localStorage will be cleared. The second time, an error occurs. delete undefined doesn't work in these browsers. Therefore I suggest to check whether a storage is available before trying to delete it.
Hey,
if you call drop() in IE 7/8 twice, the first time, the localStorage will be cleared. The second time, an error occurs. delete undefined doesn't work in these browsers. Therefore I suggest to check whether a storage is available before trying to delete it.