From 44e4f5d94bc6e448beb46e5d688153c8203d6da8 Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Mon, 8 Jun 2015 15:46:22 +0200 Subject: fixed #820 --- blocks.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 8049e59..27aae82 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2015-May-01'; +modules.blocks = '2015-June-08'; var SyntaxElementMorph; @@ -3082,6 +3082,11 @@ BlockMorph.prototype.fullCopy = function () { ans.allChildren().filter(function (block) { if (block instanceof SyntaxElementMorph) { block.cachedInputs = null; + if (block instanceof InputSlotMorph) { + block.contents().clearSelection(); + } + } else if (block instanceof CursorMorph) { + block.destroy(); } return !isNil(block.comment); }).forEach(function (block) { -- cgit v1.3.1