Skip to content

Commit c2b8055

Browse files
committedOct 1, 2012
Seems better the other way round
1 parent ee280e7 commit c2b8055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ Delete cookie:
3939

4040
## Configuration
4141

42+
By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`decodeURIComponent`. Bypass this by setting raw to true:
43+
4244
$.cookie.raw = true;
4345

44-
By default the cookie value is encoded/decoded when writing/reading, using `encodeURIComponent`/`decodeURIComponent`. Bypass this by setting raw to true.
46+
Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and `JSON.parse`:
4547

4648
$.cookie.json = true;
4749

48-
Turn on automatic storage of JSON objects passed as the cookie value. Assumes `JSON.stringify` and `JSON.parse`.
49-
5050
## Cookie Options
5151

5252
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:
7575

7676
Open in browser:
7777

78-
$ open http://0.0.0.0:8124/test.html
78+
$ open http://0.0.0.0:8124/test.html
7979

8080
## Development
8181

0 commit comments

Comments
 (0)
Please sign in to comment.