mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
14d053d874
commit
dd91172b92
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user