undo/redo functions only get a copy of the action-data to prevent manipulation of attributes like cycleIndex

This commit is contained in:
Oliver Sartun 2013-05-28 16:44:37 +02:00
parent 9ec187d840
commit 24762e5993

View File

@ -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));
}
}