mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Undo decimation of variable redeclarations
This commit is contained in:
@@ -235,7 +235,7 @@ Blockly.Workspace.prototype.undo = function(redo) {
|
||||
}
|
||||
events = Blockly.Events.filter(events, redo);
|
||||
Blockly.Events.recordUndo = false;
|
||||
for (i = 0; event = events[i]; i++) {
|
||||
for (var i = 0, event; event = events[i]; i++) {
|
||||
event.run(redo);
|
||||
}
|
||||
Blockly.Events.recordUndo = true;
|
||||
|
||||
Reference in New Issue
Block a user