Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

temp fix to get remove and clear working

  • Loading branch information...
commit 6fdfd29fb2884d53277dc34c26c56a88a3d5cd20 1 parent 7c32492
@ded ded authored
Showing with 16 additions and 2 deletions.
  1. +16 −2 src/kizzy.js
View
18 src/kizzy.js
@@ -4,14 +4,14 @@
html5 = 0,
writeThrough = function() {
return 1;
- };
-
+ }
try {
// HTML5 local storage
hasLocalStorage = !!localStorage || !!globalStorage;
localStorage = localStorage || globalStorage[store];
html5 = 1;
} catch (ex1) {
+ html5 = 0;
// IE local storage
try {
// this try / if is required. trust me
@@ -29,6 +29,10 @@
}
}
+ function noop () {
+
+ }
+
function time () {
return +new Date();
}
@@ -174,6 +178,16 @@
return 0;
}
};
+ } else {
+ var setLocalStorage = noop,
+ getLocalStorage = noop,
+ removeLocalStorage = function(ns) {
+
+ },
+ clearLocalStorage = function() {
+
+ };
+
}
}(window, document, localStorage, document.domain);
Please sign in to comment.
Something went wrong with that request. Please try again.