this should fix the "zombie file" bug. Turned out that the CodeOceanEditor object is not destroyed when navigating back and forth within the exercise context ( from an exercise back to the exercise index and forward to another exercise). Therefore, CodeOceanEditor.editors[] kept all "old" editors and added the new ones behind the old ones. On next autosave, they were persisted into a submission.

This commit is contained in:
Ralf Teusner
2017-07-03 14:57:08 +02:00
parent 56aa9f4495
commit ae04a5adc5

View File

@ -182,6 +182,7 @@ configureEditors: function () {
},
initializeEditors: function () {
this.editors = [];
$('.editor').each(function (index, element) {
// Resize frame on load