Permalink
Browse files

FIX to prev. commit.

  • Loading branch information...
lingo committed Mar 12, 2012
1 parent c037376 commit b0d7079a979879758762129857a254fd523579ea
Showing with 3 additions and 3 deletions.
  1. +3 −3 jstorage.js
View
@@ -68,10 +68,10 @@
_storage_elm: null,
/* function to encode objects to JSON strings */
- json_encode = $.toJSON || Object.toJSON || (window.JSON && (JSON.encode || JSON.stringify)),
+ json_encode: $.toJSON || Object.toJSON || (window.JSON && (JSON.encode || JSON.stringify)),
/* function to decode objects from JSON strings */
- json_decode = $.evalJSON || (window.JSON && (JSON.decode || JSON.parse)) || function(str){
+ json_decode: $.evalJSON || (window.JSON && (JSON.decode || JSON.parse)) || function(str){
return String(str).evalJSON();
},
@@ -216,4 +216,4 @@
}
// load saved data from browser
$.jStorage._init();
-})(typeof jQuery != "undefined" && jQuery || $);
+})(typeof jQuery != "undefined" && jQuery || $);

0 comments on commit b0d7079

Please sign in to comment.