From e20d287c10737bcaf59a3975fa6027bc7cce4d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Tue, 22 Mar 2022 09:18:36 +0100 Subject: [PATCH] tweaked script deserialization --- HISTORY.md | 1 + snap.html | 2 +- src/store.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 671e38eb..ecdfe3e4 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -22,6 +22,7 @@ ### 2022-03-22 * blocks: fixed relabelling "sum", "product", "minimum" and "maximum" reporters +* store: tweaked script deserialization ### 2022-03-21 * updated frequency distribution analysis library, thanks, Brian! diff --git a/snap.html b/snap.html index 7699be17..6f54f0fe 100755 --- a/snap.html +++ b/snap.html @@ -30,7 +30,7 @@ - + diff --git a/src/store.js b/src/store.js index d528c1cf..df2f9c79 100644 --- a/src/store.js +++ b/src/store.js @@ -63,7 +63,7 @@ Project*/ // Global stuff //////////////////////////////////////////////////////// -modules.store = '2022-March-18'; +modules.store = '2022-March-22'; // XML_Serializer /////////////////////////////////////////////////////// /* @@ -1353,7 +1353,7 @@ SnapSerializer.prototype.loadInput = function (model, input, block, object) { input.fixLayout(); } } else if (model.tag === 'list') { - while (input.inputs().length > 0) { + while (input.inputs().length > 0 && input.removeInput) { input.removeInput(); } model.children.forEach(item => {