Skip to content

Commit 8c7922b

Browse files
Merge branch 'master' into patch-document
2 parents 4106abb + 4bda5f0 commit 8c7922b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.cookie.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
$.cookie = function(key, value, options) {
1212

1313
// key and at least value given, set cookie...
14-
if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
14+
if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value == null)) {
1515
options = $.extend({}, $.cookie.defaults, options);
1616

17-
if (value === null || value === undefined) {
17+
if (value == null) {
1818
options.expires = -1;
1919
}
2020

0 commit comments

Comments
 (0)