angular-webstorage icon indicating copy to clipboard operation
angular-webstorage copied to clipboard

Error on has(key) check if not set

Open iotaweb opened this issue 12 years ago • 3 comments

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?

iotaweb avatar Aug 19 '14 11:08 iotaweb

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

mplayer avatar Aug 19 '14 16:08 mplayer

@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.

fredricrylander avatar Aug 19 '14 20:08 fredricrylander

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.

iotaweb avatar Aug 20 '14 08:08 iotaweb