uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
129 stars 13 forks source link

Make sure paused handlers don't run interleaved #27

Open uliwitness opened 10 years ago

uliwitness commented 10 years ago

When you 'go' to a card, we run closeCard etc. handlers, then openCard. We also pause the script while we load the new card. In the future, other commands besides 'go' might use the pausing mechanism. So we must make sure that an openCard handler that is paused gets resumed first, not the handler that executed the 'go' command that triggered it.