mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
17ca0c5519
commit
4dad475e8c
@ -488,7 +488,6 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
path = util.normalizePath(path)
|
path = util.normalizePath(path)
|
||||||
|
|
||||||
// progress...
|
// progress...
|
||||||
// XXX this does not appear to run while glob(..) is running...
|
|
||||||
var found = []
|
var found = []
|
||||||
var update_interval
|
var update_interval
|
||||||
if(logger){
|
if(logger){
|
||||||
@ -497,7 +496,7 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
update_interval = setInterval(function(){
|
update_interval = setInterval(function(){
|
||||||
found.length > 0
|
found.length > 0
|
||||||
&& logger.emit('found', found)
|
&& logger.emit('found', found)
|
||||||
&& (found = []) }, 150) }
|
&& (found = []) }, 50) }
|
||||||
|
|
||||||
// get the image list...
|
// get the image list...
|
||||||
return new Promise(function(resolve, reject){
|
return new Promise(function(resolve, reject){
|
||||||
@ -519,14 +518,14 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
console.error(err)
|
console.error(err)
|
||||||
reject(err) })
|
reject(err) })
|
||||||
.on('end', function(){
|
.on('end', function(){
|
||||||
// XXX do we need to have two copies of the list???
|
|
||||||
var lst = found.slice()
|
|
||||||
update_interval
|
update_interval
|
||||||
&& clearInterval(update_interval)
|
&& clearInterval(update_interval)
|
||||||
logger && found.length > 0
|
logger && found.length > 0
|
||||||
&& logger.emit('found', found)
|
&& logger.emit('found', found)
|
||||||
&& (found = [])
|
&& (found = [])
|
||||||
|
|
||||||
|
var lst = Object.keys(files)
|
||||||
|
|
||||||
// XXX might be a good idea to make image paths relative to path...
|
// XXX might be a good idea to make image paths relative to path...
|
||||||
//lst = lst.map(function(p){ return pathlib.relative(base, p) })
|
//lst = lst.map(function(p){ return pathlib.relative(base, p) })
|
||||||
// XXX do we need to normalize paths after we get them from glob??
|
// XXX do we need to normalize paths after we get them from glob??
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user