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...",
|
"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;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue