summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <nfdins@gmail.com>2013-11-26 08:57:47 -0500
committerNathan Dinsmore <nfdins@gmail.com>2013-11-26 09:00:13 -0500
commit2871d2ddb6691618103256a3583604dacedd43f0 (patch)
tree9499f8226946762239d456df8a61839dd10130cf
parentdf1d6ca4792b9a5b7aadc23b45bf2061a62484df (diff)
downloadsnap-yow-2871d2ddb6691618103256a3583604dacedd43f0.tar.gz
snap-yow-2871d2ddb6691618103256a3583604dacedd43f0.zip
Fixed issue #244 (relabelling now preserves empty input slots)
-rw-r--r--blocks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/blocks.js b/blocks.js
index 4dc7ccc..c6ab7cf 100644
--- a/blocks.js
+++ b/blocks.js
@@ -2256,7 +2256,7 @@ BlockMorph.prototype.restoreInputs = function (oldInputs) {
if (old instanceof ReporterBlockMorph) {
myself.silentReplaceInput(inp, old.fullCopy());
} else if (old && inp instanceof InputSlotMorph) {
- inp.setContents(old.evaluate());
+ inp.setContents(old.contents().text);
}
i += 1;
});