kopia lustrzana https://github.com/backface/turtlestitch
rodzic
294f83392c
commit
29b19ba859
12
objects.js
12
objects.js
|
@ -2743,17 +2743,17 @@ SpriteMorph.prototype.reporterize = function (expressionString) {
|
||||||
inps[0].setContents([key]);
|
inps[0].setContents([key]);
|
||||||
i = 1;
|
i = 1;
|
||||||
}
|
}
|
||||||
if (ast[i] instanceof Array) {
|
if (ast[1] instanceof Array) {
|
||||||
block.silentReplaceInput(inps[i], blockFromAST(ast[i]));
|
block.silentReplaceInput(inps[i], blockFromAST(ast[1]));
|
||||||
} else if (isString(ast[i])) {
|
} else if (isString(ast[1])) {
|
||||||
if (ast[i] !== '_') {
|
if (ast[1] !== '_') {
|
||||||
block.silentReplaceInput(
|
block.silentReplaceInput(
|
||||||
inps[i],
|
inps[i],
|
||||||
SpriteMorph.prototype.variableBlock(ast[i])
|
SpriteMorph.prototype.variableBlock(ast[1])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else { // number
|
} else { // number
|
||||||
inps[i].setContents(ast[i]);
|
inps[i].setContents(ast[1]);
|
||||||
}
|
}
|
||||||
} else { // diadic
|
} else { // diadic
|
||||||
block = SpriteMorph.prototype.blockForSelector(selectors[ast[0]]);
|
block = SpriteMorph.prototype.blockForSelector(selectors[ast[0]]);
|
||||||
|
|
Ładowanie…
Reference in New Issue