From 80d7fbd4ad7ec7c09ea98a2b4afa55ac99bceaa9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 17 Feb 2018 04:45:45 +0300 Subject: [PATCH] fix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/config.js | 1 - ui (gen4)/features/store.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/config.js b/ui (gen4)/features/config.js index 0a7b4634..d5cf6f36 100755 --- a/ui (gen4)/features/config.js +++ b/ui (gen4)/features/config.js @@ -128,7 +128,6 @@ module.ConfigStore = core.ImageGridFeatures.Feature({ ['storeDataLoaded', function(store){ if((store.localStorage || {}).config){ - console.log('--- PRE LOAD CONFIG (test)') var base = this.__base_config = this.__base_config || this.config var config = store.localStorage.config || {} config.__proto__ = base diff --git a/ui (gen4)/features/store.js b/ui (gen4)/features/store.js index 60bc7310..dba6adec 100755 --- a/ui (gen4)/features/store.js +++ b/ui (gen4)/features/store.js @@ -116,14 +116,14 @@ var StoreActions = actions.Actions({ }, } `, - function(mode, data){ + function(mode, date){ var store = {} // populate the store... Object.keys(this.store_handlers) .forEach(function(key){ store[key] = {} }) return { mode: mode || 'full', - data: data || Date.timeStamp(), + date: date || Date.timeStamp(), store: store, } @@ -154,9 +154,9 @@ var StoreActions = actions.Actions({ // .storeData(selector, data) - store data to selector... // XXX do we need mode here??? saveData: ['- Store/', - function(mode, data){ + function(mode, date){ var handlers = this.store_handlers - var data = this.prepareStoreToSave(mode, data) + var data = this.prepareStoreToSave(mode, date) Object.keys(data.store).forEach(function(store){ var handler = handlers[store]