fixed a really odd bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-10-03 04:34:19 +03:00
parent dc510d4ae8
commit eb31e84d71
2 changed files with 11 additions and 11 deletions

View File

@ -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'){

View File

@ -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()) })
}],
],
})