Slightly more descriptive function name (#831)

This commit is contained in:
Ben Beecher 2022-02-18 13:41:56 -05:00 committed by GitHub
parent 9dc54ee40e
commit 5670e064f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;