mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fixed a bug in .changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c25042b360
commit
c08b243b6a
@ -584,6 +584,8 @@ var FileSystemWriterActions = actions.Actions({
|
||||
// Mark image changed...
|
||||
// .markChanged(<gid>, ...)
|
||||
//
|
||||
// NOTE: when .changes is null (i.e. everything changed) then calling
|
||||
// this with anything other than 'none' will have no effect.
|
||||
markChanged: ['- System/',
|
||||
function(){
|
||||
var that = this
|
||||
@ -606,6 +608,13 @@ var FileSystemWriterActions = actions.Actions({
|
||||
} else if(args.length == 1 && args[0] == 'none'){
|
||||
this.changes = false
|
||||
|
||||
// everything is marked changed, everything will be saved
|
||||
// anyway...
|
||||
// NOTE: to reset this use .markChanged('none') and then
|
||||
// manually add the desired changes...
|
||||
} else if(this.changes == null){
|
||||
return
|
||||
|
||||
} else {
|
||||
var images = (changes.images || [])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user