From c129d28f93497be1a187f40b105b1a5aeefef8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Thu, 8 Aug 2024 09:24:07 +0200 Subject: [PATCH] Update store.js --- src/store.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store.js b/src/store.js index 6cc3538b2..b12e46792 100644 --- a/src/store.js +++ b/src/store.js @@ -1248,7 +1248,9 @@ SnapSerializer.prototype.loadCustomizedPrimitives = function ( child.childNamed('scripts') ); +console.log('customizing prim', definition.selector) if (stage) { // update all instances +console.log(' ...updating stage blocks...') stage.allBlockInstances(definition).reverse().forEach( block => block.refresh() ); @@ -1264,8 +1266,10 @@ SnapSerializer.prototype.loadCustomizedPrimitives = function ( } ); } else { // at least update instances found in customized prims +console.log(' ...no stage, updating customized prim', definition.selector) SpriteMorph.prototype.everyBlock().forEach(block => { if (block.definition === definition) { +console.log(' ...updating', block) block.refresh(); } });