diff options
| author | jmoenig <jens@moenig.org> | 2013-11-22 11:57:37 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-22 11:57:37 +0100 |
| commit | 3a9e258fef2cf030b4357013319208d77f7e430e (patch) | |
| tree | 99fcb57567b9d881e329167ceefd417adcd5a39f /blocks.js | |
| parent | c8bc990011f8b508bbf153ae92a50c1e4d7ea232 (diff) | |
| download | snap-3a9e258fef2cf030b4357013319208d77f7e430e.tar.gz snap-3a9e258fef2cf030b4357013319208d77f7e430e.zip | |
Prevent „hide“ menu option for non-palette template blocks
thanks, Brian, for reporting this glitch!
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |
