diff options
| author | jmoenig <jens@moenig.org> | 2015-02-23 23:28:23 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2015-02-23 23:28:23 +0100 |
| commit | d3758bd707b2d1153b9b0079ba225b6432460ce9 (patch) | |
| tree | 7e3d09c962d40b733466359d20d7aab5b809092a | |
| parent | 1f88f65e9d9caf277dfedd5fe447e3cdcfd6cdf9 (diff) | |
| download | snap-d3758bd707b2d1153b9b0079ba225b6432460ce9.tar.gz snap-d3758bd707b2d1153b9b0079ba225b6432460ce9.zip | |
fix a bug in the automatic block migration mechanism
Thanks, Josh, for telling me!
| -rw-r--r-- | objects.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
