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