mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b3be3ee4ec
commit
80d7fbd4ad
@ -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
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user