diff options
| author | Jens Mönig <jens@moenig.org> | 2015-06-08 15:46:22 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-06-08 15:46:22 +0200 |
| commit | 44e4f5d94bc6e448beb46e5d688153c8203d6da8 (patch) | |
| tree | 645c68296683f896e0916f9ca3b2ab3bb02a3cad /blocks.js | |
| parent | df05d92ab9cf052b2312a8aebb7ccf69d39e8174 (diff) | |
| download | snap-44e4f5d94bc6e448beb46e5d688153c8203d6da8.tar.gz snap-44e4f5d94bc6e448beb46e5d688153c8203d6da8.zip | |
fixed #820
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |
