some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-02-06 02:44:48 +03:00
parent 14d053d874
commit dd91172b92

View File

@ -210,13 +210,18 @@ module.Store = core.ImageGridFeatures.Feature({
// XXX we should have a separate store config with settings of how to
// load the store... (???)
var StoreLocalStorageActions = actions.Actions({
config: {
// XXX
'store-root-key': 'test-store-root-key',
},
// XXX get root key from config...
// ...this would require us to store the store config separately...
localStorageDataHandler: ['- Store/',
{handle_data_store: 'localStorage',},
function(data){
// XXX get this from config...
var root = 'test-store-root-key'
var root = this.config['store-root-key']
// clear...
if(data === null){
@ -236,7 +241,7 @@ var StoreLocalStorageActions = actions.Actions({
{handle_data_store: 'sessionStorage',},
function(data){
// XXX get this from config...
var root = 'test-store-root-key'
var root = this.config['store-root-key']
// clear...
if(data === null){