We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4106abb + 4bda5f0 commit 8c7922bCopy full SHA for 8c7922b
jquery.cookie.js
@@ -11,10 +11,10 @@
11
$.cookie = function(key, value, options) {
12
13
// key and at least value given, set cookie...
14
- if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
+ if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value == null)) {
15
options = $.extend({}, $.cookie.defaults, options);
16
17
- if (value === null || value === undefined) {
+ if (value == null) {
18
options.expires = -1;
19
}
20
0 commit comments