aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Losing work in editor when editing world #216

Closed aroberge closed 8 years ago

aroberge commented 8 years ago

A recent improvement was to allow running code when editing a world: this is particularly useful when one wants to include pre- and post-code. However, when editing is terminated, the code that was saved in local storage from the previously non-editing run replaces the code in the editor and the library without warning. What should be done instead is to save the current code (editor and library) into local storage when the editing task is completed.