From 57407ab87b76d9fc9d7779efaa5334f8f4c3ed7a Mon Sep 17 00:00:00 2001 From: sergey Date: Sun, 14 Jul 2024 21:37:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B0=D0=BB=D1=8C=D1=88=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BB=D1=83=D0=BF=D0=B0=D1=8E=20htmx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sipi-app/views/static/js/htmx.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sipi-app/views/static/js/htmx.js b/sipi-app/views/static/js/htmx.js index 834c677..5a5ad2b 100644 --- a/sipi-app/views/static/js/htmx.js +++ b/sipi-app/views/static/js/htmx.js @@ -1091,7 +1091,6 @@ var htmx = (function() { if (elt && elt.closest) { return elt.closest(selector) } else { - // TODO remove when IE goes away do { if (elt == null || matches(elt, selector)) { return elt @@ -2866,7 +2865,7 @@ var htmx = (function() { function makeEvent(eventName, detail) { let evt if (window.CustomEvent && typeof window.CustomEvent === 'function') { - // TODO: `composed: true` here is a hack to make global event handlers work with events in shadow DOM + // This breaks expected encapsulation but needs to be here until decided otherwise by core devs evt = new CustomEvent(eventName, { bubbles: true, cancelable: true, composed: true, detail }) } else { @@ -2899,7 +2898,6 @@ var htmx = (function() { * be called internally at every extendable execution point in htmx. * * @param {Element} elt - * @param {(extension:HtmxExtension) => void} toDo * @returns void */ function withExtensions(elt, toDo) {