fix serialization bug

This commit is contained in:
ansuz 2016-08-01 15:05:25 +02:00
parent caf1a6f01c
commit a6fd285642
1 changed files with 1 additions and 1 deletions

View File

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