fixed a bug in .changes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-03-30 18:05:56 +03:00
parent c25042b360
commit c08b243b6a

View File

@ -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 || [])