catch block label part issues, prevent palette from not showing

upd4.1
Jens Mönig 2017-02-07 06:15:08 -08:00
rodzic 23e8e018bd
commit bcf1c39782
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -150,7 +150,7 @@ CustomCommandBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2017-February-02';
modules.blocks = '2017-February-07';
var SyntaxElementMorph;
var BlockMorph;
@ -2276,6 +2276,10 @@ BlockMorph.prototype.setSpec = function (spec, silently) {
inputIdx += 1;
}
part = myself.labelPart(word);
if (isNil(part)) {
// console.log('could not create label part', word);
return;
}
myself.add(part);
if (!(part instanceof CommandSlotMorph ||
part instanceof StringMorph)) {

Wyświetl plik

@ -3354,3 +3354,7 @@ Fixes:
------
* Objects, BYOB: highly experimental custom block inheritance, under construction…
* Blocks: fixed #1650
170207
------
* Blocks: catch block label part issues, prevent palette from not showing