mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
84809a0e24
commit
be9bb9126b
@ -369,11 +369,7 @@ actions.Actions({
|
|||||||
if(!k.startsWith('_')
|
if(!k.startsWith('_')
|
||||||
&& this[k] != null
|
&& this[k] != null
|
||||||
&& this[k].json != null){
|
&& this[k].json != null){
|
||||||
res[k] = this[k].json()
|
res[k] = this[k].json() } } } }],
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
|
|
||||||
getImagePath: ['- System/',
|
getImagePath: ['- System/',
|
||||||
function(gid, type){
|
function(gid, type){
|
||||||
@ -1389,12 +1385,7 @@ module.CropActions = actions.Actions({
|
|||||||
return c
|
return c
|
||||||
.json()
|
.json()
|
||||||
.run(function(){
|
.run(function(){
|
||||||
delete this.tags })
|
delete this.tags }) }) } } } }],
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
// load the crop stack if present...
|
// load the crop stack if present...
|
||||||
load: [function(state){
|
load: [function(state){
|
||||||
return function(){
|
return function(){
|
||||||
|
|||||||
@ -302,7 +302,6 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
var skipped = new Set()
|
var skipped = new Set()
|
||||||
var paths = Object.keys(res)
|
var paths = Object.keys(res)
|
||||||
paths
|
paths
|
||||||
.sort()
|
|
||||||
.forEach(function(p){
|
.forEach(function(p){
|
||||||
// already removed...
|
// already removed...
|
||||||
if(skipped.has(p) >= 0){
|
if(skipped.has(p) >= 0){
|
||||||
@ -318,7 +317,7 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
skipped.add(e)
|
skipped.add(e)
|
||||||
delete res[e] }) })
|
delete res[e] }) })
|
||||||
// keep only the valid paths...
|
// keep only the valid paths...
|
||||||
paths = Object.keys(res)
|
paths = Object.keys(res).sort()
|
||||||
|
|
||||||
//console.log('SKIPPING NESTED:', skipped.length)
|
//console.log('SKIPPING NESTED:', skipped.length)
|
||||||
|
|
||||||
@ -407,9 +406,7 @@ var FileSystemLoaderActions = actions.Actions({
|
|||||||
force_full_save
|
force_full_save
|
||||||
// XXX remove as soon as merged index save is done...
|
// XXX remove as soon as merged index save is done...
|
||||||
&& loaded.length == 1
|
&& loaded.length == 1
|
||||||
&& that.markChanged('all') })
|
&& that.markChanged('all') }) }) }],
|
||||||
})
|
|
||||||
}],
|
|
||||||
|
|
||||||
// Get image(s) previews...
|
// Get image(s) previews...
|
||||||
//
|
//
|
||||||
|
|||||||
@ -202,8 +202,7 @@ var MetadataReaderActions = actions.Actions({
|
|||||||
|
|
||||||
this.images
|
this.images
|
||||||
&& this.images.forEach(function(gid){
|
&& this.images.forEach(function(gid){
|
||||||
q.enqueue('metadata', read(gid))
|
q.enqueue('metadata', read(gid)) })
|
||||||
})
|
|
||||||
|
|
||||||
return q }],
|
return q }],
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user