Skip to content

Commit

Permalink
cookies.erase was not referenced correctly in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Voltace committed Apr 16, 2015
1 parent d6ee57f commit fe13c5b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ cookies.erase('firstName'); // Removes cookie

### API
API contents:
- method [cookies.set(`name`, `value` [, `options`])](#cookies-set)
- method [cookies.set(`name`, `value` [, `options`])](#cookies-set)
- method [cookies.get(`name`)](#cookies-get)
- method [cookies.set(`name`, [, `options`])](#cookies-erase)
- method [cookies.erase(`name`, [, `options`])](#cookies-erase)
- property [cookies.defaults](#cookies-defaults)

<hr/>
<a name="cookies-set"></a>
[**cookies.set(** `name`, `value` [, `options`] **)**](#cookies-set)
<hr/><a name="cookies-set"></a>

[**cookies.set(** `name`, `value` &#91;, `options`&#93; **)**](#cookies-set)
<br/>
Method to save a cookie.

Expand All @@ -72,8 +72,8 @@ Method to save a cookie.
| **`options`** | object | may contain any of the properties specified in [options](#options) below. If an option is not specified, the value configured in [cookies.defaults](#cookies-defaults) will be used.


<hr/>
<a name="cookies-get"></a>
<hr/><a name="cookies-get"></a>

[**cookies.get(** `name` **)**](#cookies-get)
<br/>
Method that returns a cookie value, or **null** if the cookie is not found.
Expand All @@ -83,9 +83,9 @@ Method that returns a cookie value, or **null** if the cookie is not found.
| **`name`** | string | the name of the cookie to retrieve.


<hr/>
<a name="cookies-erase"></a>
[**cookies.erase(** `name` [, `options`] **)**](#cookies-erase)
<hr/><a name="cookies-erase"></a>

[**cookies.erase(** `name` &#91;, `options` &#93; **)**](#cookies-erase)
<br/>
Method to remove a cookie.

Expand All @@ -95,8 +95,8 @@ Method to remove a cookie.
| **`options`** | object | may contain the `domain` and `path` properties specified in [options](#options) below. If an option is not specified, the value configured in [cookies.defaults](#cookies-defaults) will be used.


<hr/>
<a name="cookies-defaults"></a>
<hr/><a name="cookies-defaults"></a>

[**cookies.defaults**](#cookies-defaults)
<br/>
This object may be used to change the default value of each option specified in [options](#options) below.
Expand Down

0 comments on commit fe13c5b

Please sign in to comment.