summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index c6ab7cf..96d8b53 100644
--- a/blocks.js
+++ b/blocks.js
@@ -2256,6 +2256,9 @@ BlockMorph.prototype.restoreInputs = function (oldInputs) {
if (old instanceof ReporterBlockMorph) {
myself.silentReplaceInput(inp, old.fullCopy());
} else if (old && inp instanceof InputSlotMorph) {
+ // original - turns empty numberslots to 0:
+ // inp.setContents(old.evaluate());
+ // "fix" may be wrong b/c constants
inp.setContents(old.contents().text);
}
i += 1;