prevent orphaned loading error messages

pull/95/head
jmoenig 2021-06-09 20:04:37 +02:00
rodzic 2c74f25b53
commit 4e6d7b4f22
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1280,7 +1280,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
var morphicVersion = '2021-February-10';
var morphicVersion = '2021-June-09';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = true;
@ -8405,7 +8405,7 @@ MenuMorph.prototype.destroy = function () {
if (this.hasFocus) {
this.world.keyboardFocus = null;
}
if (!this.isListContents) {
if (!this.isListContents && (this.world.activeMenu === this)) {
this.world.activeMenu = null;
}
MenuMorph.uber.destroy.call(this);