Prevent „hide“ menu option for non-palette template blocks

thanks, Brian, for reporting this glitch!
pull/3/merge
jmoenig 2013-11-22 11:57:37 +01:00
rodzic c8bc990011
commit 3a9e258fef
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2013-November-15';
modules.blocks = '2013-November-22';
var SyntaxElementMorph;
var BlockMorph;
@ -1969,7 +1969,7 @@ BlockMorph.prototype.userMenu = function () {
"help...",
'showHelp'
);
if (this.isTemplate) {
if (this.isTemplate && !(this.parent instanceof SyntaxElementMorph)) {
if (this.selector !== 'evaluateCustomBlock') {
menu.addItem(
"hide",

Wyświetl plik

@ -2004,3 +2004,4 @@ ______
131122
------
* Morphic: Dont trigger events for eclipsed morphs (whose parent-chain contains a hidden morph)
* Blocks: Prevent „hide“ menu option for non-palette template blocks