From 8c21fad2574bfd89c1d0f976991be24828f870bd Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 May 2017 01:38:04 +0200 Subject: [PATCH] Abort popover if source element is already gone --- .../install/files/js/WoltLabSuite/Core/Controller/Popover.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js index 6b83c47ab1..609a1c106b 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js @@ -321,6 +321,11 @@ define(['Ajax', 'Dictionary', 'Environment', 'Dom/ChangeListener', 'Dom/Util', ' _activeId = _hoverId; var elementData = _elements.get(_activeId); + // check if source element is already gone + if (elementData === undefined) { + return; + } + var data = _cache.get(elData(elementData.element, 'cache-id')); if (data.state === STATE_READY) { -- 2.20.1