Autosave container is somtimes already gone
authorAlexander Ebert <ebert@woltlab.com>
Sun, 25 Dec 2016 12:35:22 +0000 (13:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 25 Dec 2016 12:37:05 +0000 (13:37 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Autosave.js

index a2ded726b549bba6daded4c715ef8ccd6d3c6c22..641aeaae031dbd6c330f714cd6de11606564c9e7 100644 (file)
@@ -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 = '';