Disallow "ringify" option for inline-template blocks

pull/3/merge
jmoenig 2013-11-22 13:46:40 +01:00
rodzic 09cd45dc7e
commit 540ae2fcf4
1 zmienionych plików z 19 dodań i 17 usunięć

Wyświetl plik

@ -1969,23 +1969,25 @@ BlockMorph.prototype.userMenu = function () {
"help...", "help...",
'showHelp' 'showHelp'
); );
if (this.isTemplate && !(this.parent instanceof SyntaxElementMorph)) { if (this.isTemplate) {
if (this.selector !== 'evaluateCustomBlock') { if (!(this.parent instanceof SyntaxElementMorph)) {
menu.addItem( if (this.selector !== 'evaluateCustomBlock') {
"hide", menu.addItem(
'hidePrimitive' "hide",
); 'hidePrimitive'
} );
if (StageMorph.prototype.enableCodeMapping) { }
menu.addLine(); if (StageMorph.prototype.enableCodeMapping) {
menu.addItem( menu.addLine();
'header mapping...', menu.addItem(
'mapToHeader' 'header mapping...',
); 'mapToHeader'
menu.addItem( );
'code mapping...', menu.addItem(
'mapToCode' 'code mapping...',
); 'mapToCode'
);
}
} }
return menu; return menu;
} }