fix a bug in the automatic block migration mechanism

Thanks, Josh, for telling me!
pull/3/merge
jmoenig 2015-02-23 23:28:23 +01:00
rodzic 1f88f65e9d
commit d3758bd707
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1219,7 +1219,7 @@ SpriteMorph.prototype.initBlockMigrations = function () {
}, },
receiveClick: { receiveClick: {
selector: 'receiveInteraction', selector: 'receiveInteraction',
inputs: [['I am clicked']] inputs: [['clicked']]
} }
}; };
}; };
@ -1602,7 +1602,7 @@ SpriteMorph.prototype.blockForSelector = function (selector, setDefaults) {
: new ReporterBlockMorph(info.type === 'predicate'); : new ReporterBlockMorph(info.type === 'predicate');
block.color = this.blockColor[info.category]; block.color = this.blockColor[info.category];
block.category = info.category; block.category = info.category;
block.selector = selector; block.selector = migration ? migration.selector : selector;
if (contains(['reifyReporter', 'reifyPredicate'], block.selector)) { if (contains(['reifyReporter', 'reifyPredicate'], block.selector)) {
block.isStatic = true; block.isStatic = true;
} }