Skip to content

Commit

Permalink
Slightly more descriptive function name (bigskysoftware#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
gone authored Feb 18, 2022
1 parent 9dc54ee commit 5670e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5670e06

Please sign in to comment.