undo/redo functions only get a copy of the action-data to prevent manipulation of attributes like cycleIndex
This commit is contained in:
parent
9ec187d840
commit
24762e5993
@ -108,7 +108,7 @@
|
||||
// Calls the undo/redo-function for a specific action
|
||||
var type = attr.type, fn = !UndoTypes[type] || UndoTypes[type][which];
|
||||
if (_.isFunction(fn)) {
|
||||
fn(attr.object, attr.before, attr.after, attr);
|
||||
fn(attr.object, attr.before, attr.after, _.clone(attr));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user