fixed a bug for showing the senders of a message

pull/95/head
jmoenig 2021-02-13 23:47:08 +01:00
rodzic 3407396652
commit f650b8b538
3 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -15,6 +15,7 @@
* rearranged the blocks in the lists category palette (moved commands up)
* **Notable Fixes:**
* don't show internal "compile" reporter in search results
* fixed a bug for showing the senders of a message
* **Documentation Updates:**
* updated manual with hyper-semantics of ITEM OF, thanks Brian!
* **Translation Updates:**
@ -22,6 +23,7 @@
### 2021-02-13
* blocks, threads, lists: distinguish between "columns" (<3D) and (deep) "transpose"
* byob: fixed a bug for showing the senders of a message
### 2021-02-12
* blocks, threads, lists: distinguish between "transpose" (<3D) and "deep transpose"

Wyświetl plik

@ -14,7 +14,7 @@
<script src="src/gui.js?version=2021-02-04"></script>
<script src="src/paint.js?version=2020-05-17"></script>
<script src="src/lists.js?version=2021-02-13"></script>
<script src="src/byob.js?version=2020-12-22"></script>
<script src="src/byob.js?version=2021-02-13"></script>
<script src="src/tables.js?version=2020-10-06"></script>
<script src="src/sketch.js?version=2020-07-13"></script>
<script src="src/video.js?version=2019-06-27"></script>

Wyświetl plik

@ -9,7 +9,7 @@
written by Jens Mönig
jens@moenig.org
Copyright (C) 2020 by Jens Mönig
Copyright (C) 2021 by Jens Mönig
This file is part of Snap!.
@ -107,7 +107,7 @@ WatcherMorph, Variable, BooleanSlotMorph, XML_Serializer, SnapTranslator*/
// Global stuff ////////////////////////////////////////////////////////
modules.byob = '2020-December-22';
modules.byob = '2021-February-13';
// Declarations
@ -617,7 +617,9 @@ CustomBlockDefinition.prototype.collectDependencies = function (
CustomBlockDefinition.prototype.isSending = function (message, receiverName) {
return this.scripts.concat(
this.body ? [this.body.expression] : []
).some(script => script.isSending(message, receiverName));
).some(script => script instanceof BlockMorph &&
script.isSending(message, receiverName)
);
};
// CustomCommandBlockMorph /////////////////////////////////////////////