florian/cookie.js

CookieJS doesn't add cookies, when in an object

Infiniti20 opened this issue · 2 comments

cookie.set({uuid:product.uuid, quant:quant, sDate:startDate, eDate:endDate }) doesn't work, for some reason. It works individually, if you do it like this: cookie.set({uuid:product.uuid}), but otherwise it fails silently without an error. Some of my fields are integers, but individually, it auto typecasts, so I don't think that's the problem.

Yeah, turns out it wasn't executing the instructions, due to a rogue function call.