From 71a85e4d06a3192de62ec3f8ba32150bbfa09d7b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 21 Feb 2024 12:47:03 -0500 Subject: [PATCH] Preferences: Delete menulist observer after disconnecting --- chrome/content/zotero/preferences/preferences.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 2ff21cc82f..e8e309af30 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -487,6 +487,7 @@ ${str} } if (this._mutationObservers.has(elem)) { this._mutationObservers.get(elem).disconnect(); + this._mutationObservers.delete(elem); } };