Permalink
Browse files

Seems better the other way round

  • Loading branch information...
1 parent ee280e7 commit c2b80550af6c32ad6a72e79870a97823cd37a52d @carhartl committed Oct 1, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -39,14 +39,14 @@ Delete cookie:
## Configuration
+By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`decodeURIComponent`. Bypass this by setting raw to true:
+
$.cookie.raw = true;
-By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`decodeURIComponent`. Bypass this by setting raw to true.
+Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and `JSON.parse`:
$.cookie.json = true;
-Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and `JSON.parse`.
-
## Cookie Options
Cookie attributes can be set globally by setting properties of the `$.cookie.defaults` object or individually for each call to `$.cookie()` by passing a plain object to the options argument. Per-call options override the default options.
@@ -75,7 +75,7 @@ Requires Node. Startup server:
Open in browser:
- $ open http://0.0.0.0:8124/test.html
+ $ open http://0.0.0.0:8124/test.html
## Development

0 comments on commit c2b8055

Please sign in to comment.