diff --git a/HISTORY.md b/HISTORY.md index 290a791b..0c56e290 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,9 +6,12 @@ * **Notable Fixes:** * **Translation Updates:** +### 2019-07-24 +* byob: fixed #2041 + ## v5.0.6 * **Notable Fix:** - * IME text editing support, thanks, @swiperthefox! + * IME text editing support, thanks, Zhenlei Jia @swiperthefox! ### 2019-07-23 * morphic: minor code reformatting for LINTers diff --git a/snap.html b/snap.html index 8e565849..702dd2ae 100755 --- a/snap.html +++ b/snap.html @@ -2,7 +2,7 @@ - Snap! Build Your Own Blocks 5.0.6 + Snap! Build Your Own Blocks 5.0.7 - dev - @@ -12,7 +12,7 @@ - + diff --git a/src/byob.js b/src/byob.js index dcb6ab8f..913677c0 100644 --- a/src/byob.js +++ b/src/byob.js @@ -108,7 +108,7 @@ BooleanSlotMorph, XML_Serializer, SnapTranslator*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2019-July-15'; +modules.byob = '2019-July-24'; // Declarations @@ -2821,7 +2821,6 @@ BlockLabelFragmentMorph.prototype.mouseClickLeft = function () { BlockLabelFragmentMorph.prototype.updateBlockLabel = function (newFragment) { var prot = this.parentThatIsA(BlockMorph); - this.fragment = newFragment; if (prot) { prot.refreshPrototype(); @@ -3209,9 +3208,9 @@ InputSlotDialogMorph.prototype.getInput = function () { this.slots.defaultInputField.getValue(); } return lbl; - } else if (!this.noDelete) { - this.fragment.isDeleted = true; } + // otherwise remove the fragment + this.fragment.isDeleted = true; return null; };