дальше колупаю htmx
This commit is contained in:
parent
a4268180cd
commit
57407ab87b
|
@ -1091,7 +1091,6 @@ var htmx = (function() {
|
||||||
if (elt && elt.closest) {
|
if (elt && elt.closest) {
|
||||||
return elt.closest(selector)
|
return elt.closest(selector)
|
||||||
} else {
|
} else {
|
||||||
// TODO remove when IE goes away
|
|
||||||
do {
|
do {
|
||||||
if (elt == null || matches(elt, selector)) {
|
if (elt == null || matches(elt, selector)) {
|
||||||
return elt
|
return elt
|
||||||
|
@ -2866,7 +2865,7 @@ var htmx = (function() {
|
||||||
function makeEvent(eventName, detail) {
|
function makeEvent(eventName, detail) {
|
||||||
let evt
|
let evt
|
||||||
if (window.CustomEvent && typeof window.CustomEvent === 'function') {
|
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
|
// 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 })
|
evt = new CustomEvent(eventName, { bubbles: true, cancelable: true, composed: true, detail })
|
||||||
} else {
|
} else {
|
||||||
|
@ -2899,7 +2898,6 @@ var htmx = (function() {
|
||||||
* be called internally at every extendable execution point in htmx.
|
* be called internally at every extendable execution point in htmx.
|
||||||
*
|
*
|
||||||
* @param {Element} elt
|
* @param {Element} elt
|
||||||
* @param {(extension:HtmxExtension) => void} toDo
|
|
||||||
* @returns void
|
* @returns void
|
||||||
*/
|
*/
|
||||||
function withExtensions(elt, toDo) {
|
function withExtensions(elt, toDo) {
|
||||||
|
|
Loading…
Reference in New Issue