summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/blocks.js b/blocks.js
index 35c01a7..7ace781 100644
--- a/blocks.js
+++ b/blocks.js
@@ -153,7 +153,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.blocks = '2013-April-19';
+modules.blocks = '2013-April-21';
var SyntaxElementMorph;
var BlockMorph;
@@ -628,8 +628,9 @@ SyntaxElementMorph.prototype.fixBlockColor = function (
SyntaxElementMorph.prototype.labelPart = function (spec) {
var part;
- if ((spec[0] === '%') && (spec.length > 1)) {
-
+ if (spec[0] === '%' &&
+ spec.length > 1 &&
+ this.selector !== 'reportGetVar') {
// check for variable multi-arg-slot:
if ((spec.length > 5) && (spec.slice(0, 5) === '%mult')) {
part = new MultiArgMorph(spec.slice(5));
@@ -3443,16 +3444,19 @@ ReporterBlockMorph.prototype.getSlotSpec = function () {
// ReporterBlockMorph events
ReporterBlockMorph.prototype.mouseClickLeft = function (pos) {
+ var isRing;
if (this.parent instanceof BlockInputFragmentMorph) {
return this.parent.mouseClickLeft();
}
if (this.parent instanceof TemplateSlotMorph) {
+ isRing = this.parent.parent && this.parent.parent.parent &&
+ this.parent.parent.parent instanceof RingMorph;
new DialogBoxMorph(
this,
this.setSpec,
this
).prompt(
- "Input name",
+ isRing ? "Input name" : "Script variable name",
this.blockSpec,
this.world()
);