If someone adds data to the storage using the bracket notation like you do within the commit method, it could lead to a strange situation while trying to commit when the size limit of the storage is reached.
localStorage["ID"] = "blabla"; is not save to use withing the internet Exlorer. For writing, it's better to use setItem()
If someone adds data to the storage using the bracket notation like you do within the commit method, it could lead to a strange situation while trying to commit when the size limit of the storage is reached. localStorage["ID"] = "blabla"; is not save to use withing the internet Exlorer. For writing, it's better to use setItem()
A testcase for this is here: http://dev-test.nemikor.com/web-storage/bracket-limit/