MonashAlexandria / snapapps

a visual programming language inspired by Scratch
http://snap.berkeley.edu
2 stars 5 forks source link

Cellular HTML5: cannot delete variable #51

Closed mciotola closed 9 years ago

mciotola commented 9 years ago

Cellular HTML5: cannot delete variables. Clicking the "Delete A Variable" button does not have any effect, even when the box to the left of the variable is checked. (Yes, I misspelled the variable name, which is why I want to delete it.)

cannot_delete_variable

mciotola commented 9 years ago

A bit of progress. When I click "Delete a Variable", I get a menu (see image below) with the variable names to delete. However, it does not actually delete the variable. In contrast, using this pop-up menu to delete cell attributes does seem to work.

delete_var_menu

mciotola commented 9 years ago

There is still a problem. When I "Delete a Variable" and choose a variable to delete, that variable disappears from the stage. However, it still remains in the Variables block list, at least for awhile. This will make the user think the variable has not actually been deleted, even if it has been.

For example, I created then deleted "vartest2" and "vartest3". The names no longer appear on the stage, but do appear in the Variables blocklist (see two images below).

cellular_html5_var_del-1 cellular_html5_var_del-2

Craxic commented 9 years ago

Hi Mark,

I'm unable to reproduce this issue. Could you please specify the types of these variables (global, for each instance of this sprite). I can't see any issue with either.

Please let me know when you find a way to reliably reproduce this bug. Sorry I can't help any further.

mciotola commented 9 years ago

The problem is gone! Which means it was likely related to something else you recently fixed.