Error on has(key) check if not set
When checking for the existence of a key before setting a value, I get the an error, e.g.
console.log(webStorage.has('user'));
generates...
Uncaught TypeError: undefined is not a function
Am I missing something?
which version are you using. The one in bower doesn't have the has function you have to download it manually and use that version
@iotaweb did you fetch the module via bower? @mplayer is correct, I had forgotten to push the latest version tag to GitHub and thus bower could not fetch the latest update. It should be fixed now.
Hi Fredric,
Yes that was it, I didn’t have the latest version. Have updated from bower and now it works.
Thanks for addressing this so promptly frs for sharing your work.
Cheers, Rob
On 20/08/2014, at 8:58 am, Fredric Rylander [email protected] wrote:
@iotaweb did you fetch the module via bower? @mplayer is correct, I had forgotten to push the latest version tag to GitHub and thus bower could not fetch the latest update. It should be fixed now.
— Reply to this email directly or view it on GitHub.