diff --git a/core/flyout_base.js b/core/flyout_base.js index 2d382a2be..c51777d57 100644 --- a/core/flyout_base.js +++ b/core/flyout_base.js @@ -765,12 +765,13 @@ Blockly.Flyout.prototype.createBlock = function(originalBlock) { this.targetWorkspace.setResizesEnabled(false); try { newBlock = this.placeNewBlock_(originalBlock); - // Close the flyout. - Blockly.hideChaff(); } finally { Blockly.Events.enable(); } + // Close the flyout. + Blockly.hideChaff(); + var newVariables = Blockly.Variables.getAddedVariables(this.targetWorkspace, variablesBeforeCreation);