We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d9dbf3 commit e56c990Copy full SHA for e56c990
test/utils.js
@@ -35,7 +35,13 @@
35
window.lifecycle = {
36
afterEach: function () {
37
// Remove the cookies created using js-cookie default attributes
38
- Object.keys(Cookies.get()).forEach(Cookies.remove);
+ // Note: Using `Object.keys(Cookies.get()).forEach(Cookies.remove)`
39
+ // would cause IE 6 + 7 to break with a "Object doesn't support
40
+ // this property or method" error, thus wrapping it with a
41
+ // function.
42
+ Object.keys(Cookies.get()).forEach(function (cookie) {
43
+ Cookies.remove(cookie);
44
+ });
45
// Remove the cookies created using browser default attributes
46
Object.keys(Cookies.get()).forEach(function (cookie) {
47
Cookies.remove(cookie, {
0 commit comments