Commit 25ced9c
committed
Add the "Cookies" API without changing the jquery dependency requirement
Adjust the tests to use the new API. The new API behaves exactly how
"$.cookie" does.
I opted for "Cookies" instead of "Cookie" because it would be
semantically correct to call "Cookies.get()" to get all cookies instead
of "Cookie.get()", otherwise it would mean bloating the codebase by
doing something like "Cookie.getAll()", "Cookie.getCookies()" or
something like that.
+31 bytes gzipped1 parent bd1b173 commit 25ced9c
File tree
4 files changed
+111
-100
lines changed- src
- test
4 files changed
+111
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments