From: Alexander Ebert Date: Sun, 20 Dec 2020 13:15:12 +0000 (+0100) Subject: `const` trips the requirejs compiler X-Git-Tag: 5.3.2~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5491736d9d6e0e621512b9f5dc82b31198860620;p=GitHub%2FWoltLab%2FWCF.git `const` trips the requirejs compiler --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 6b0a5ec43b..aa137f10d5 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -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");