From 0ef9ae398e64c83c028f99444655b290294c2940 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 25 Dec 2016 13:35:22 +0100 Subject: [PATCH] Autosave container is somtimes already gone --- .../files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js index a2ded726b5..641aeaae03 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js @@ -198,7 +198,9 @@ define(['Language', 'Dom/Traverse'], function(Language, DomTraverse) { this._container.classList.remove('active'); window.setTimeout((function () { - elRemove(this._container); + if (this._container !== null) { + elRemove(this._container); + } this._container = null; this._originalMessage = ''; -- 2.20.1