From ba347990c1b23dfbc11d735a47def349bea4817d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 21 Feb 2019 01:42:46 +0100 Subject: [PATCH] fixed deleting a single command inside a stack which somehow got broken when allowing commands inside reporter rings --- HISTORY.md | 3 +++ snap.html | 2 +- src/blocks.js | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 0c04d84a..d75755d4 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -41,6 +41,9 @@ * Greek, thanks, Alexandros! * German +### 2019-02-21 +* Blocks: fixed deleting a single command inside a stack + ### 2019-02-20 * Tweaked German translation * Vector editor color name changes, thanks, Brian! diff --git a/snap.html b/snap.html index 2ced8e56..2a346e30 100755 --- a/snap.html +++ b/snap.html @@ -6,7 +6,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 19d94e91..78d5831c 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2019-February-15'; +modules.blocks = '2019-February-21'; var SyntaxElementMorph; var BlockMorph; @@ -4805,7 +4805,9 @@ CommandBlockMorph.prototype.userDestroyJustThis = function () { this.destroy(true); // just this block } if (nb) { - if (above instanceof CommandSlotMorph, RingReporterSlotMorph) { + if (above instanceof CommandSlotMorph || + above instanceof RingReporterSlotMorph + ) { above.nestedBlock(nb); } else if (above instanceof CommandBlockMorph) { above.nextBlock(nb);