kopia lustrzana https://github.com/backface/turtlestitch
Disallow "ringify" option for inline-template blocks
rodzic
09cd45dc7e
commit
540ae2fcf4
36
blocks.js
36
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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue