Commit 9a3358b3 authored by Matthew Taylor's avatar Matthew Taylor

provide a default `opts` if it’s undefined

parent 4175c119
......@@ -71,6 +71,7 @@ var Jar = {
});
},
set: function (name, value, opts) {
opts = opts || {};
defaults(opts, {
expires: new Date(new Date().setYear(new Date().getFullYear() + 1))
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment