jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.47k stars 739 forks source link

No `update` event emitted for some slot creations and removals #3329

Closed asolove closed 3 months ago

asolove commented 3 months ago

In a MultiArgMorph showing an arbitrary list of upvars or strings:

Reproduction steps

Research notes

How to fix

I tried debugging through this to understand why the event gets thrown in one case and not another, but can't quite find it. I think it might just be a side-effect of the first case deleting and re-creating the FrameMorph wrapping the arrows.

There are some code comment notes about a deliberate difference between remove and delete, so I wanted to ask before making arbitrary changes.

Tracing through what happens yielded:

jmoenig commented 3 months ago

Thanks, Adam, good catch! This is going to be a quick and easy fix, I think. I'm all busy and traveling this week, but hope to get around to fixing it either over the weekend or early next week.