Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-12-30 01:44:35 +03:00
parent c2bccd8ae8
commit a94cffa212

View File

@ -1843,6 +1843,8 @@ module.CropActions = actions.Actions({
`, `,
// NOTE: we do not need undo here as we'll not use this directly // NOTE: we do not need undo here as we'll not use this directly
{ {
// NOTE: this modifies the journaled arguments (.args) and
// excludes gids that are not loaded...
getUndoState: function(d){ getUndoState: function(d){
var a = d.args[0] || [] var a = d.args[0] || []
a = a instanceof Array ? a : [a] a = a instanceof Array ? a : [a]