mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
experimenting with loading history...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e94ba6ba2c
commit
8b9cdd8650
@ -162,7 +162,9 @@ var FileSystemLoaderActions = actions.Actions({
|
||||
var k = paths[i]
|
||||
|
||||
// XXX save dates...
|
||||
// XXX not sure if this is the right way to go....
|
||||
res[k].__dates && console.log('DATES:', res[k].__dates)
|
||||
res[k].__date && console.log('LOADED:', res[k].__date)
|
||||
|
||||
// skip empty indexes...
|
||||
// XXX should we rebuild or list here???
|
||||
|
||||
@ -264,6 +264,7 @@ function(list, from_date, logger){
|
||||
|
||||
// XXX revise...
|
||||
index.__dates = Object.keys(dates)
|
||||
index.__date = Object.keys(date)[0]
|
||||
|
||||
logger && logger.emit('files-queued', queued, index)
|
||||
|
||||
@ -451,6 +452,10 @@ function(path, index_dir, from_date, logger){
|
||||
res.__dates = index.__dates
|
||||
return
|
||||
}
|
||||
if(keyword == '__date'){
|
||||
res.__date = index.__date
|
||||
return
|
||||
}
|
||||
|
||||
// NOTE: so far I really do not like how nested and
|
||||
// unreadable the Promise/Deferred code becomes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user