Merge pull request #1549 from mozilla/issue1546-kpi-storage
@ozten - Nice work on the cleanup. What if we created one logger that we could use to universally log these sorts of things? If we consolidated all of the logging into one module, we could add/remove/turn on or off functionality we use for logging. For the removed "delete" statement, it is safer to use localStorage.removeItem. I forgot which browser was giving us problems with that, in the end I wrote a load of unit tests and did a browser comparison blog post (http://www.shanetomlinson.com/2012/localstorage-bugs-inconsistent-removeitem-delete/) - the trouble with delete came from IE8. In IE8, if the item you are trying to call delete on is not already in localStorage, it will throw an exception. IE8 does not have this problem with localStorage.removeItem. r+ - Merging. close #1546
No related branches found
No related tags found
Please register or sign in to comment