Hi, I wanted to check in here about an issue I am having, that may be a bug. I am updating an element from Polymer 0.5 core-localstorage to 1.0 iron-localstorage. I noticed one inconsistency related to the fact that localStorage.getItem returns null when an item doesn't exist. This was handled appropriately in core-localstorage, but in iron-localstorage, the value is explicitly set to null, when localStorage is empty. This means on the first load of my element everything that is using local storage is set to null, which causes some number of problems. I wanted to see if this logic is sound, before creating an issue on github.
Thanks,
Kyle
Line 186:
this.value = null;
...
Explained on line 90:
// localStorage has a flaw that makes it difficult to determine
...