mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed a really odd bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dc510d4ae8
commit
eb31e84d71
@ -921,11 +921,7 @@ var ChangesActions = actions.Actions({
|
||||
|
||||
// all...
|
||||
if(args.length == 1 && args[0] == 'all'){
|
||||
// NOTE: this is better than delete as it will shadow
|
||||
// the parent's changes in case we got cloned from
|
||||
// a live instance...
|
||||
//delete this.changes
|
||||
this.changes = null
|
||||
this.changes = true
|
||||
|
||||
// none...
|
||||
} else if(args.length == 1 && args[0] == 'none'){
|
||||
|
||||
@ -770,13 +770,18 @@ module.FileSystemLoader = core.ImageGridFeatures.Feature({
|
||||
['loadIndex',
|
||||
function(res, path){
|
||||
if(path){
|
||||
//this.markChanged('none')
|
||||
var that = this
|
||||
res.then(function(){
|
||||
that.markChanged('none')
|
||||
})
|
||||
res.then(function(){
|
||||
that.markChanged('none') })
|
||||
}
|
||||
}],
|
||||
// mark everything changed when loading images...
|
||||
['loadImages',
|
||||
function(res){
|
||||
var that = this
|
||||
res.then(function(){
|
||||
that.markChanged('all') })
|
||||
}],
|
||||
// add new images to changes...
|
||||
['loadNewImages',
|
||||
function(res){
|
||||
@ -786,8 +791,7 @@ module.FileSystemLoader = core.ImageGridFeatures.Feature({
|
||||
&& imgs.length > 0
|
||||
&& that
|
||||
.markChanged('data')
|
||||
.markChanged(imgs.keys())
|
||||
})
|
||||
.markChanged(imgs.keys()) })
|
||||
}],
|
||||
],
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user