дальше колупаю htmx
This commit is contained in:
parent
a4268180cd
commit
57407ab87b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue