fix serialization bug
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user