Undo decimation of variable redeclarations

This commit is contained in:
Rachel Fenichel
2016-05-10 14:36:51 -07:00
parent 640b38f38e
commit 3605dfb9c0
19 changed files with 74 additions and 72 deletions

View File

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