From a6fd285642127516a116b3d8f042b19c95976419 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 1 Aug 2016 15:05:25 +0200 Subject: [PATCH] fix serialization bug --- customize.dist/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customize.dist/store.js b/customize.dist/store.js index 4f921805c..c5c758146 100644 --- a/customize.dist/store.js +++ b/customize.dist/store.js @@ -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); };