`const` trips the requirejs compiler
authorAlexander Ebert <ebert@woltlab.com>
Sun, 20 Dec 2020 13:15:12 +0000 (14:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 20 Dec 2020 13:15:12 +0000 (14:15 +0100)
wcfsetup/install/files/js/WCF.Message.js

index 6b0a5ec43bd5b3810a404a8dee50ca0542ad35fb..aa137f10d5bc7c1d01b213e33dfdbb6b55038008 100644 (file)
@@ -1155,10 +1155,10 @@ if (COMPILER_TARGET_DEFAULT) {
                        WCF.DOMNodeInsertedHandler.addCallback('WCF.Message.Quote.Handler' + objectType.hashCode(), $.proxy(this._initContainers, this));
                        
                        // Prevent the tooltip from being selectable while the touch pointer is being moved.
-                       const tooltip = this._copyQuote[0];
+                       var tooltip = this._copyQuote[0];
                        document.addEventListener("touchstart", function (event) {
                                if (tooltip.classList.contains("active")) {
-                                       const target = event.target;
+                                       var target = event.target;
                                        if (target !== tooltip && !tooltip.contains(target)) {
                                                tooltip.classList.add("touchForceInaccessible");
                                                
@@ -1593,7 +1593,7 @@ if (COMPILER_TARGET_DEFAULT) {
                        });
                        this._proxy.sendRequest();
                        
-                       const selection = window.getSelection();
+                       var selection = window.getSelection();
                        if (selection.rangeCount) {
                                selection.removeAllRanges();
                                this._copyQuote[0].classList.remove("active");