Skip to content

Commit

Permalink
Group api related functions together
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Feb 15, 2018
1 parent e7f7f5d commit 5083c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js.cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@
json: true
}, [].slice.call(arguments));
};
api.defaults = {};

api.remove = function (key, attributes) {
api(key, '', extend(attributes, {
expires: -1
}));
};

api.defaults = {};

api.withConverter = init;

return api;
Expand Down

0 comments on commit 5083c64

Please sign in to comment.