tidy up the autosave timer when exiting the page
This commit is contained in:
@ -196,6 +196,7 @@ CodeOceanEditorSubmissions = {
|
||||
unloadAutoSave: function() {
|
||||
if(this.autosaveTimer != null){
|
||||
this.autosave();
|
||||
clearTimeout(this.autosaveTimer);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user