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...",
'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;
}