From: Alexander Ebert Date: Sun, 25 Dec 2016 12:35:22 +0000 (+0100) Subject: Autosave container is somtimes already gone X-Git-Tag: 3.0.0_RC_3~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ef9ae398e64c83c028f99444655b290294c2940;p=GitHub%2FWoltLab%2FWCF.git Autosave container is somtimes already gone --- 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 = '';