fix serialization bug

pull/1/head
ansuz 9 years ago
parent caf1a6f01c
commit a6fd285642

@ -19,7 +19,7 @@ define(function () {
// implement in alternative store // implement in alternative store
Store.setBatch = function (map, cb) { Store.setBatch = function (map, cb) {
Object.keys(map).forEach(function (key) { Object.keys(map).forEach(function (key) {
localStorage.setItem(key, map[key]); localStorage.setItem(key, JSON.stringify(map[key]));
}); });
cb(void 0, map); cb(void 0, map);
}; };

Loading…
Cancel
Save