Closed cfjedimaster closed 9 years ago
If I do this first: Lockr.set("testS", []);
it works, but shouldn't sadd recognize the se doesn't exist and just default it?
Thanks for bringing this to our attention!
Lockr.sadd
uses smembers
under the hood, which already returns an empty array, so you shouldn't get this error.
Also, specs are passing in major browsers. What browser are you using?
Latest Chrome.
On Fri, Jul 24, 2015 at 4:47 AM, Dimitris Tsironis <notifications@github.com
wrote:
Thanks for bringing this to our attention!
Lockr.sadd uses smembers under the hood, which already returns an empty array, so you shouldn't get this error.
Also, specs are passing in major browsers. What browser are you using?
— Reply to this email directly or view it on GitHub https://github.com/tsironis/lockr/issues/18#issuecomment-124458538.
Raymond Camden, Developer Advocate for MobileFirst at IBM
Email : raymondcamden@gmail.com Blog : www.raymondcamden.com Twitter: raymondcamden
I could not reproduce the issue (please see screenshot above). Can you provide any additional details to reproduce?
Weird - I've tried to recreate it and can't anymore. I wonder if maybe I had a testS value already or.... I don't know. Either way - sorry for the noise.
No worries, mate! If you manage to reproduce, please don't hesitate to send me more details.
I tried a simple sadd example:
And I get this in console:
Uncaught TypeError: values.indexOf is not a function