summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2015-02-23 23:28:23 +0100
committerjmoenig <jens@moenig.org>2015-02-23 23:28:23 +0100
commitd3758bd707b2d1153b9b0079ba225b6432460ce9 (patch)
tree7e3d09c962d40b733466359d20d7aab5b809092a
parent1f88f65e9d9caf277dfedd5fe447e3cdcfd6cdf9 (diff)
downloadsnap-d3758bd707b2d1153b9b0079ba225b6432460ce9.tar.gz
snap-d3758bd707b2d1153b9b0079ba225b6432460ce9.zip
fix a bug in the automatic block migration mechanism
Thanks, Josh, for telling me!
-rw-r--r--objects.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/objects.js b/objects.js
index 27d8964..552bf8e 100644
--- a/objects.js
+++ b/objects.js
@@ -1219,7 +1219,7 @@ SpriteMorph.prototype.initBlockMigrations = function () {
},
receiveClick: {
selector: 'receiveInteraction',
- inputs: [['I am clicked']]
+ inputs: [['clicked']]
}
};
};
@@ -1602,7 +1602,7 @@ SpriteMorph.prototype.blockForSelector = function (selector, setDefaults) {
: new ReporterBlockMorph(info.type === 'predicate');
block.color = this.blockColor[info.category];
block.category = info.category;
- block.selector = selector;
+ block.selector = migration ? migration.selector : selector;
if (contains(['reifyReporter', 'reifyPredicate'], block.selector)) {
block.isStatic = true;
}