From 0d085c27b245a9fca37e401e3466b1032a107a1d Mon Sep 17 00:00:00 2001 From: Andrew n marshall Date: Thu, 18 Jan 2018 15:57:18 -0800 Subject: [PATCH] Removing Events.disable()/.enable() from disableOrphans. Tested in Blockly Games and BlockFactory. Tests also pass. --- core/events.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/events.js b/core/events.js index e1ffad6f0..6cf774477 100644 --- a/core/events.js +++ b/core/events.js @@ -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(); } };