Skip to content

Instantly share code, notes, and snippets.

@ChillyBwoy
Created May 26, 2011 00:35
Show Gist options
  • Save ChillyBwoy/992303 to your computer and use it in GitHub Desktop.
Save ChillyBwoy/992303 to your computer and use it in GitHub Desktop.
Cookie functions for underscore.js
@german-latorre
Copy link

Grand script!

Just one thing: the same way value is escaped when saved, should be unescaped when retreived:

Line 17:

cookies[key] = value;

Line 27:

 if (key === name) cookie = unescape(value);

Copy link

ghost commented Jun 26, 2018

┬┴┬┴┤ ͜ʖ ͡°) ├┬┴┬┴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment