summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-11-26 18:44:07 +0100
committerjmoenig <jens@moenig.org>2013-11-26 18:44:07 +0100
commit3b596cf6fb6258665f4f31077552c678a23d06e1 (patch)
tree9b2fa04f0b288d4553cf6f36b5561e2b991ddcd4 /blocks.js
parente29787cdc70af2f36eeb213c6af766776275eb4d (diff)
downloadsnap-yow-3b596cf6fb6258665f4f31077552c678a23d06e1.tar.gz
snap-yow-3b596cf6fb6258665f4f31077552c678a23d06e1.zip
comment on relabelling issue
save old code for future reference in case we introduced a bug here
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;