mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +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
|
// XXX we should have a separate store config with settings of how to
|
||||||
// load the store... (???)
|
// load the store... (???)
|
||||||
var StoreLocalStorageActions = actions.Actions({
|
var StoreLocalStorageActions = actions.Actions({
|
||||||
|
config: {
|
||||||
|
// XXX
|
||||||
|
'store-root-key': 'test-store-root-key',
|
||||||
|
},
|
||||||
|
|
||||||
// XXX get root key from config...
|
// XXX get root key from config...
|
||||||
// ...this would require us to store the store config separately...
|
// ...this would require us to store the store config separately...
|
||||||
localStorageDataHandler: ['- Store/',
|
localStorageDataHandler: ['- Store/',
|
||||||
{handle_data_store: 'localStorage',},
|
{handle_data_store: 'localStorage',},
|
||||||
function(data){
|
function(data){
|
||||||
// XXX get this from config...
|
// XXX get this from config...
|
||||||
var root = 'test-store-root-key'
|
var root = this.config['store-root-key']
|
||||||
|
|
||||||
// clear...
|
// clear...
|
||||||
if(data === null){
|
if(data === null){
|
||||||
@ -236,7 +241,7 @@ var StoreLocalStorageActions = actions.Actions({
|
|||||||
{handle_data_store: 'sessionStorage',},
|
{handle_data_store: 'sessionStorage',},
|
||||||
function(data){
|
function(data){
|
||||||
// XXX get this from config...
|
// XXX get this from config...
|
||||||
var root = 'test-store-root-key'
|
var root = this.config['store-root-key']
|
||||||
|
|
||||||
// clear...
|
// clear...
|
||||||
if(data === null){
|
if(data === null){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user