Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-02-17 04:45:45 +03:00
parent b3be3ee4ec
commit 80d7fbd4ad
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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]