Skip to content

Commit 34a506a

Browse files
committed
fixing deletion of cookie in IE, broken in former commit
1 parent ac34ed4 commit 34a506a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎jquery.cookie.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$.cookie = function (key, value, options) {
1212

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

1717
if (value === null || value === undefined) {

0 commit comments

Comments
 (0)