summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js36
1 files changed, 19 insertions, 17 deletions
diff --git a/blocks.js b/blocks.js
index c6f00bf..b9963f2 100644
--- a/blocks.js
+++ b/blocks.js
@@ -1969,23 +1969,25 @@ BlockMorph.prototype.userMenu = function () {
"help...",
'showHelp'
);
- if (this.isTemplate && !(this.parent instanceof SyntaxElementMorph)) {
- if (this.selector !== 'evaluateCustomBlock') {
- menu.addItem(
- "hide",
- 'hidePrimitive'
- );
- }
- if (StageMorph.prototype.enableCodeMapping) {
- menu.addLine();
- menu.addItem(
- 'header mapping...',
- 'mapToHeader'
- );
- menu.addItem(
- 'code mapping...',
- 'mapToCode'
- );
+ if (this.isTemplate) {
+ if (!(this.parent instanceof SyntaxElementMorph)) {
+ if (this.selector !== 'evaluateCustomBlock') {
+ menu.addItem(
+ "hide",
+ 'hidePrimitive'
+ );
+ }
+ if (StageMorph.prototype.enableCodeMapping) {
+ menu.addLine();
+ menu.addItem(
+ 'header mapping...',
+ 'mapToHeader'
+ );
+ menu.addItem(
+ 'code mapping...',
+ 'mapToCode'
+ );
+ }
}
return menu;
}