Skip to content

Instantly share code, notes, and snippets.

@ralt
Created March 23, 2013 21:56
Show Gist options
  • Save ralt/5229515 to your computer and use it in GitHub Desktop.
Save ralt/5229515 to your computer and use it in GitHub Desktop.
LocalStorage bug?
localStorage.setItem('getItem', 4)
undefined
localStorage.getItem
function getItem() { [native code] }
localStorage['getItem'] = 'user'
"user"
localStorage.getItem
"user"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment