mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Slightly more descriptive function name (#831)
This commit is contained in:
parent
9dc54ee40e
commit
5670e064f2
@ -1656,13 +1656,13 @@ return (function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBoosted() {
|
function hasChanceOfBeingBoosted() {
|
||||||
return document.querySelector("[hx-boost], [data-hx-boost]");
|
return document.querySelector("[hx-boost], [data-hx-boost]");
|
||||||
}
|
}
|
||||||
|
|
||||||
function findElementsToProcess(elt) {
|
function findElementsToProcess(elt) {
|
||||||
if (elt.querySelectorAll) {
|
if (elt.querySelectorAll) {
|
||||||
var boostedElts = isBoosted() ? ", a, form" : "";
|
var boostedElts = hasChanceOfBeingBoosted() ? ", a, form" : "";
|
||||||
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
|
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
|
||||||
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
||||||
return results;
|
return results;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user