mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 06:21:19 +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]");
|
||||
}
|
||||
|
||||
function findElementsToProcess(elt) {
|
||||
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]," +
|
||||
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
||||
return results;
|
||||
|
Loading…
x
Reference in New Issue
Block a user