From 3b596cf6fb6258665f4f31077552c678a23d06e1 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 26 Nov 2013 18:44:07 +0100 Subject: [PATCH] comment on relabelling issue save old code for future reference in case we introduced a bug here --- blocks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blocks.js b/blocks.js index c6ab7cf6..96d8b534 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;