Removing Events.disable()/.enable() from disableOrphans.

Tested in Blockly Games and BlockFactory. Tests also pass.
This commit is contained in:
Andrew n marshall
2018-01-18 15:57:18 -08:00
parent ae7da6c7a8
commit 0d085c27b2

View File

@@ -1126,7 +1126,6 @@ Blockly.Events.VarRename.prototype.run = function(forward) {
Blockly.Events.disableOrphans = function(event) {
if (event.type == Blockly.Events.MOVE ||
event.type == Blockly.Events.CREATE) {
Blockly.Events.disable();
var workspace = Blockly.Workspace.getById(event.workspaceId);
var block = workspace.getBlockById(event.blockId);
if (block) {
@@ -1143,6 +1142,5 @@ Blockly.Events.disableOrphans = function(event) {
} while (block);
}
}
Blockly.Events.enable();
}
};