summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-11-22 13:46:40 +0100
committerjmoenig <jens@moenig.org>2013-11-22 13:46:40 +0100
commit540ae2fcf413dcbfbee0ed78762ece696c621f57 (patch)
tree852a46ac5fcf0ab3f43ed60f40e511513f2c268d
parent09cd45dc7ec362b60294d64c53a0c3720590e7de (diff)
downloadsnap-540ae2fcf413dcbfbee0ed78762ece696c621f57.tar.gz
snap-540ae2fcf413dcbfbee0ed78762ece696c621f57.zip
Disallow "ringify" option for inline-template blocks
-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;
}